Restart pod

Moki Lv6
1
kubectl rollout restart deployment <deployment_name>
1
2
kubectl scale deployment shop --replicas=0 && sleep 10 && \
kubectl scale deployment shop --replicas=1
1
2
kubectl delete pod <pod_name>
kubectl delete replicaset <name>
1
kubectl get pod <pod_name> -n <namespace> -o yaml | kubectl replace --force -f -
On this page
Restart pod