fix(deploy) : fit web CPU reservations to cluster capacity
This commit is contained in:
@@ -174,6 +174,10 @@ jobs:
|
||||
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 resources deployment/buzz-sheet \
|
||||
--containers=app \
|
||||
--requests=cpu=200m,memory=1Gi \
|
||||
--limits=cpu=1,memory=2Gi
|
||||
kubectl --kubeconfig "$KUBECONFIG" --namespace "$DEPLOY_NAMESPACE" set image \
|
||||
deployment/buzz-sheet \
|
||||
app="$REGISTRY_IMAGE:$REVISION"
|
||||
|
||||
Reference in New Issue
Block a user