How to delete kubernetes dashboard from kube-system?

人走茶凉 提交于 2020-01-04 03:54:11

问题


I can not remove kubernetes-dashboard from minikube. I tried deleting the deployment "deployment.apps/kubernetes-dashboard" multiple times. But it gets recreated automatically in few seconds.

I am using following command to delete the deployment:

kubectl delete deployment.apps/kubernetes-dashboard -n kube-system

I even tried to edit the deployment by setting replica count to zero. But even it gets reset automatically after few seconds.

The same thing happens for nginx-ingress deployment in kube-system.


回答1:


I had to disable dashboard addon using minikube first. Then deleting the deployment did work for me.

minikube addons disable dashboard

And in case of ingress

minikube addons disable ingress



回答2:


PLease do try the following

kubectl get secret,sa,role,rolebinding,services,deployments --namespace=kube-system | grep dashboard


来源:https://stackoverflow.com/questions/54664233/how-to-delete-kubernetes-dashboard-from-kube-system

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