47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: aggregator
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: aggregator
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: aggregator
|
|
spec:
|
|
containers:
|
|
- name: aggregator
|
|
image: sysmonstm/aggregator:latest
|
|
ports:
|
|
- containerPort: 50051
|
|
name: grpc
|
|
envFrom:
|
|
- configMapRef:
|
|
name: aggregator-config
|
|
env:
|
|
- name: TIMESCALE_PASSWORD
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: timescaledb-secret
|
|
key: password
|
|
resources:
|
|
requests:
|
|
memory: "128Mi"
|
|
cpu: "100m"
|
|
limits:
|
|
memory: "256Mi"
|
|
cpu: "500m"
|
|
livenessProbe:
|
|
exec:
|
|
command: ["/bin/grpc_health_probe", "-addr=:50051"]
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 10
|
|
readinessProbe:
|
|
exec:
|
|
command: ["/bin/grpc_health_probe", "-addr=:50051"]
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 5
|