Skip to main content
Question

Command to stop and start POD

  • May 18, 2022
  • 1 reply
  • 588 views

paguin
Sidekick (Partner)
Forum|alt.badge.img+11
  • Sidekick (Partner)
  • 143 replies

Hello,

using mtctl start --namespace custA_prod and

          mtctl stop --namespace custA_prod

we can restart the name environment/name space

Is there any command which we can use to restart just a pod instead of whole 

Please suggest.

Best Regards

Pankaj

1 reply

Forum|alt.badge.img+11

Hi @paguin,

 

You might need to use kubectl command to restart a pod

  • Restart a pod

kubectl delete pod pod_name -n namespace_name

or

kubectl scale deployment pod_name  -n  namespace_name --replicas=0

kubectl scale deployment pod_name  -n  namespace_name --replicas=1

kubectl get pods -n namespace_name

 

Thank you

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings