Skip to content

Commit

Permalink
give scale down more time
Browse files Browse the repository at this point in the history
  • Loading branch information
alxgomz committed Mar 19, 2024
1 parent 527ca55 commit 411bf93
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/helm-enterprise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,10 @@ jobs:
echo "Got $SETSIZE instead"
exit 1
else
echo "Got $SETSIZE. Now waiting for scaling down"
echo -n "Got $SETSIZE. Now waiting for scaling down. "
kubectl patch hpa acs-alfresco-repository \
-p '{"spec": {"behavior": {"scaleDown": {"stabilizationWindowSeconds": 20}}}}'
kubectl wait --timeout=40s --for=jsonpath='spec.replicas'=1 hpa/acs-alfresco-repository
echo -n "(speeding scale down up)... "
kubectl wait --timeout=2m --for=jsonpath='spec.replicas'=1 hpa/acs-alfresco-repository
echo "Scale down completed"
fi

0 comments on commit 411bf93

Please sign in to comment.