Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to remove kube-dns from Kubernetes Cluster v1.9.1 #59

Closed
campbelldgunn opened this issue Jan 30, 2018 · 7 comments
Closed

Unable to remove kube-dns from Kubernetes Cluster v1.9.1 #59

campbelldgunn opened this issue Jan 30, 2018 · 7 comments

Comments

@campbelldgunn
Copy link

Followed the instructions from https://github.com/coredns/deployment/tree/master/kubernetes
Tried to remove kube-dns using $ kubectl delete --namespace=kube-system deployment kube-dns is says it deleted, but within a few mintues it re-appears.

Any assistance would be greatly appreciated!

@campbelldgunn
Copy link
Author

@johnbelamaric Any ideas would be greatly appreciated as I was just following the instructions. It is a v1.9.1 K8s cluster, so RBAC is enable. thx.

@johnbelamaric
Copy link
Member

johnbelamaric commented Jan 30, 2018 via email

@campbelldgunn
Copy link
Author

The cluster was built using acs-engine in MS Azure.

@chrisohaver
Copy link
Member

It does sound like an addon-manager. I have no direct experience with Azure deployments of kubernetes. But inferring from some other discussions, you might try the following ...

Look in /etc/kubernetes/addons/ on the master for a kube-dns yaml definition. Try deleting that yaml file (or moving it out of the directory), then restarting the addon manager (by deleting the addon-manager pod in kube-system namespace). Then try deleting the kube-dns deployment.

@chrisohaver
Copy link
Member

chrisohaver commented Jan 30, 2018

... Also be aware that the addon manager may be reconciling the kube-dns service too (i.e. restoring it to select the kube-dns pods instead of the coredns pods). If so, you'll need to re-apply the yaml produced by the deployment.sh script.

@campbelldgunn
Copy link
Author

All right I will have a look at that. thanks.

@campbelldgunn
Copy link
Author

@chrisohaver Nope, did exactly the steps above and the Kube-DNS deployment comes back and so do the pods.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants