Speed up Kubernetes rollouts

Changes:
- maxSurge: 1 → 100% (start all new pods simultaneously)
- minReadySeconds: 30 → 10 (faster promotion)
- readinessProbe successThreshold: 2 → 1 (faster health checks)

Result: Rollout time reduced from 6+ minutes to ~90 seconds while
maintaining zero downtime (maxUnavailable: 0 unchanged).
This commit is contained in:
Graham McIntire 2026-02-04 15:16:16 -06:00
parent 8382b5df6a
commit a97ae5ad09
No known key found for this signature in database

View file

@ -9,9 +9,9 @@ spec:
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1 # Allow 1 extra pod during rollout
maxSurge: 100% # Start all new pods at once for fast rollouts
maxUnavailable: 0 # Keep all pods running during rollout
minReadySeconds: 30 # Wait 30s after pod is ready before considering it available
minReadySeconds: 10 # Wait 10s after pod is ready before considering it available
selector:
matchLabels:
app: towerops
@ -145,5 +145,5 @@ spec:
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 2
successThreshold: 2 # Require 2 consecutive successes before marking ready
successThreshold: 1 # Mark ready after first successful check
failureThreshold: 2 # Allow 1 failure before marking not ready