How to stop Replicaset from restarting?

戏子无情 提交于 2019-12-02 02:27:31

问题


I started a test if my kubernetes installation is running well, with:

$ kubectl run -it hello --image=busybox -- sh

However it didn't work. Now I want to just clean up everything before I figure out how to continue. But if I deletethe pod it gets restarted, I suppose by a corresponding replicaset. But this gets restarted as well if I delete it. What can I do now to clean up whatever kubectl run did?


回答1:


The run command creates a deployment which controls the replicaset please run the following commands to verify and solve:

kubectl get deployments

kubectl delete deployment hello


来源:https://stackoverflow.com/questions/43230541/how-to-stop-replicaset-from-restarting

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!