Wednesday, 11 September 2019

kubectl delete



http://docs.kubernetes.org.cn/618.html

https://blog.csdn.net/liumiaocn/article/details/73913597

if you just kubectl delete pod xxxx,

you may find the pod will come back,  you deleted it but it also triggered the replica thing, it will auto restart a new one.

so you need to delete the deplotment first


kubectl get deployment


check which deployment do you have, then:


kubectl delete deployment xxxxx

No comments:

Post a comment