Forum Navigation
You need to log in to create posts and topics.

Kubernetes Restart Container / Reload Container Settings


User wants to restart entire container ( with all pods )


Method 1 – Delete container. kubernetes will restore it with settings

kubectl delete pod -n=kube-system coredns-fb8b8dccf-8ggcf

Method 2 – Scale Down and scale up deployment

kubectl scale deployment <<name>> –replicas=0 -n <<namespace>>

kubectl scale deployment <<name>> –replicas=1 -n <<namespace>>

Example method 2

kubectl scale deployment zipkin –replicas=0 -n monitoring
kubectl scale deployment zipkin –replicas=1  -n monitoring

you can scale down multiple deployments faster using the following commands in the namespace

kubectl scale deployment $(kubectl get deployment |grep -v NAME|awk ‘{print $1}’|tr ‘\n’ ‘ ‘) –replicas=0

or specify multiple deployments with spaces between them



All content available through this Web Site is provided on an “AS IS” and “AS AVAILABLE” basis, with all faults. Tracston LTD makes no warranty or representation with respect to the quality, accuracy, or availability of the Web Site or any of its content.