fix(deploy) : roll out web replicas without surge capacity
CI / Verify (push) Successful in 2m4s
CI / Build immutable images and deploy (push) Successful in 3m51s

This commit is contained in:
2026-10-09 19:20:23 +07:00 Unverified
parent b49b758c99
commit be2648cab3
3 changed files with 12 additions and 4 deletions
+4
View File
@@ -170,6 +170,10 @@ jobs:
kubectl --kubeconfig "$KUBECONFIG" --namespace "$DEPLOY_NAMESPACE" patch configmap buzz-sheet-config \
--type=merge \
--patch "{\"data\":{\"NEXT_DEPLOYMENT_ID\":\"$REVISION\",\"BASE_URL\":\"$BASE_URL\"}}"
# Replace one web replica at a time without reserving CPU for a surge pod.
kubectl --kubeconfig "$KUBECONFIG" --namespace "$DEPLOY_NAMESPACE" patch deployment buzz-sheet \
--type=merge \
--patch '{"spec":{"strategy":{"type":"RollingUpdate","rollingUpdate":{"maxSurge":0,"maxUnavailable":1}}}}'
kubectl --kubeconfig "$KUBECONFIG" --namespace "$DEPLOY_NAMESPACE" set image \
deployment/buzz-sheet \
app="$REGISTRY_IMAGE:$REVISION"