INT 21h

Hi, I am Vladimir Smagin, SysAdmin and Kaptain. Telegram Email / GIT / RSS / GPG

Kubernetes: wait all pods actually terminated after scale to 0

№ 11269 В разделе "Sysadmin" от April 26th, 2021,
В подшивках: , ,

Use labels of deployment:

echo "$(date): Stop app pods"

kubectl -n default scale --replicas=0 deployment/my-application
kubectl -n default wait --for=delete pod -l \
                                         -l \

echo "$(date): Start backup"

Нет комментариев »

Leave a Reply

Your email address will not be published. Required fields are marked *



Fortune cookie: Today's spam: Chairman Mao??s favorite Chinese handicrafts