From 71759dc67a69ae7c6e72cb135d495c4aaec99db6 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 6 Nov 2025 18:43:23 +0000 Subject: [PATCH] Fix Tilt hanging on frontend deployment Fixed the issue where Tilt would get stuck after building the frontend image: 1. Changed imagePullPolicy from 'Always' to 'IfNotPresent' - Prevents Kubernetes from trying to pull from a remote registry - Uses locally built images for development 2. Removed ':latest' tag from image reference - Now uses 'bakery/dashboard' without explicit tag - Allows Skaffold/Tilt to inject the correct tag ('dev') 3. Optimized health check configuration: - Use dedicated /health endpoint instead of / - Reduced readiness probe initialDelaySeconds from 20s to 5s - Reduced liveness probe initialDelaySeconds from 60s to 15s - Faster pod startup and readiness detection These changes ensure Kubernetes can find and use the locally built image, and the pod becomes ready much faster, preventing Tilt from hanging during deployment. --- .../base/components/frontend/frontend-service.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/infrastructure/kubernetes/base/components/frontend/frontend-service.yaml b/infrastructure/kubernetes/base/components/frontend/frontend-service.yaml index 11412cc4..80532ac5 100644 --- a/infrastructure/kubernetes/base/components/frontend/frontend-service.yaml +++ b/infrastructure/kubernetes/base/components/frontend/frontend-service.yaml @@ -21,8 +21,8 @@ spec: spec: containers: - name: frontend - image: bakery/dashboard:latest - imagePullPolicy: Always + image: bakery/dashboard + imagePullPolicy: IfNotPresent ports: - containerPort: 3000 name: http @@ -41,17 +41,17 @@ spec: cpu: "500m" livenessProbe: httpGet: - path: / + path: /health port: 3000 - initialDelaySeconds: 60 - timeoutSeconds: 10 + initialDelaySeconds: 15 + timeoutSeconds: 5 periodSeconds: 30 failureThreshold: 3 readinessProbe: httpGet: - path: / + path: /health port: 3000 - initialDelaySeconds: 20 + initialDelaySeconds: 5 timeoutSeconds: 5 periodSeconds: 10 failureThreshold: 3