diff --git a/k8s/deployment.yaml b/k8s/deployment.yaml index 2591f15b..925161eb 100644 --- a/k8s/deployment.yaml +++ b/k8s/deployment.yaml @@ -84,8 +84,9 @@ spec: secretKeyRef: name: towerops-secrets key: SECRET_KEY_BASE + # Redis connection to Valkey sidecar container (localhost because same pod) - name: REDIS_HOST - value: "localhost" + value: "127.0.0.1" - name: REDIS_PORT value: "6379" envFrom: @@ -100,11 +101,18 @@ spec: limits: memory: "2Gi" cpu: "500m" + startupProbe: + httpGet: + path: /health + port: 4000 + initialDelaySeconds: 10 + periodSeconds: 5 + timeoutSeconds: 3 + failureThreshold: 12 # 10s + (12 * 5s) = 70s max startup time livenessProbe: httpGet: path: /health port: 4000 - initialDelaySeconds: 30 periodSeconds: 10 timeoutSeconds: 3 failureThreshold: 3 @@ -112,7 +120,6 @@ spec: httpGet: path: /health port: 4000 - initialDelaySeconds: 5 periodSeconds: 3 timeoutSeconds: 2 successThreshold: 1