Kaptain.
Telegram /
LinkedIn /
Email /
GIT /
RSS /
GPG /
Заказ печатных плат

№ 11269 В разделе
Sysadmin
от April 26th, 2021,
В подшивках: Backups, Kubernetes, Linux
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 app.kubernetes.io/name=appname
-l app.kubernetes.io/instance=my-application
--timeout=90s
echo "$(date): Start backup"
Fortune cookie: "There is no question that deadly force should be used to protect innocent life." [Paul Hill, leader of Defensive Action]
Leave a Reply