[K8s]无yaml文件重启Pod

在没有pod 的yaml文件时,强制重启某个pod

kubectl get pod PODNAME -n NAMESPACE -o yaml | kubectl replace --force -f -

 

来源 :https://www.jianshu.com/p/baa6b11062de

posted @ 2019-07-24 16:58  JokerJason  阅读(2964)  评论(0编辑  收藏  举报

It's not who you are underneath, it's what you do that defines you

Brick walls are there for a reason :they let us prove how badly we want things