Fix Dozzle connection issues and restarts

Root cause: Dozzle was being rate-limited by the Kubernetes API when
fetching logs from many containers. The aggressive 1-second health check
timeouts caused the container to fail probes and restart repeatedly.

Changes:
- Increased all probe timeouts from 1s to 5s to handle API rate limiting
- Increased liveness probe period from 10s to 30s to reduce check frequency
- Increased readiness probe period from 5s to 10s
- Increased startup probe failure threshold from 15 to 20 (60s total startup time)
- Increased CPU limit from 500m to 1000m and request from 100m to 250m
- Increased memory limit from 512Mi to 1Gi and request from 128Mi to 256Mi
- Pinned image version to v10.6.10 instead of :latest

This prevents unnecessary restarts when Dozzle is waiting on rate-limited
Kubernetes API calls, fixing both the initial 503 errors and the connection
drops after prolonged use.

Resolves: DEV-351

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
CTO Agent 2026-07-19 16:37:46 +00:00
parent 6de215aeca
commit d0dc5dc735

View file

@ -42,25 +42,25 @@ spec:
httpGet: httpGet:
path: /healthcheck path: /healthcheck
port: 8080 port: 8080
initialDelaySeconds: 5 initialDelaySeconds: 10
periodSeconds: 2 periodSeconds: 3
timeoutSeconds: 1 timeoutSeconds: 5
successThreshold: 1 successThreshold: 1
failureThreshold: 15 failureThreshold: 20
readinessProbe: readinessProbe:
httpGet: httpGet:
path: /healthcheck path: /healthcheck
port: 8080 port: 8080
periodSeconds: 5 periodSeconds: 10
timeoutSeconds: 1 timeoutSeconds: 5
successThreshold: 1 successThreshold: 1
failureThreshold: 2 failureThreshold: 3
livenessProbe: livenessProbe:
httpGet: httpGet:
path: /healthcheck path: /healthcheck
port: 8080 port: 8080
periodSeconds: 10 periodSeconds: 30
timeoutSeconds: 1 timeoutSeconds: 5
successThreshold: 1 successThreshold: 1
failureThreshold: 3 failureThreshold: 3
volumeMounts: volumeMounts:
@ -68,11 +68,11 @@ spec:
mountPath: /data mountPath: /data
resources: resources:
limits: limits:
cpu: 500m cpu: 1000m
memory: 512Mi memory: 1Gi
requests: requests:
cpu: 100m cpu: 250m
memory: 128Mi memory: 256Mi
- name: oauth2-proxy - name: oauth2-proxy
image: quay.io/oauth2-proxy/oauth2-proxy:latest image: quay.io/oauth2-proxy/oauth2-proxy:latest
ports: ports: