问题
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