I want to destroy the instance of tiller running in my cluster. Really, I want to redeploy tiller. However, tiller won't go away. How can I remove tiller?
What I have tried so far......
Use kubectl commands:
kubectl -n "kube-system" delete deployment tiller-deploy
kubectl -n "kube-system" delete service tiller-deploy
Results: tiller pods recreates itself
Use helm commands:
helm reset
Results: fails due to a cluster issue. This is why I want to destroy tiller and start over.
Note: tiller is running as a daemon-set
How did this happen? :)
helm init
deploys tiller as a deployment, which deploys replica sets/pods. Therefore kubectl -n "kube-system" delete deployment tiller-deploy
should be the way to remove tiller from the cluster assuming it was deployed using helm init
.
If it's somehow running as a daemonset, then you'll have to find the name of the daemonset using kubectl -n kube-system get daemonsets
and delete that one.
Also, which cloud provider are you using? I know in certain instances (like on ACS) tiller is deployed through their addon manager, and this manifested in a bug. See https://github.com/Azure/ACS/issues/55 for more background on that one.
I deployed on ACS via acs-engine. https://github.com/Azure/ACS/issues/55 explains the issue.
Most helpful comment
How did this happen? :)
helm init
deploys tiller as a deployment, which deploys replica sets/pods. Thereforekubectl -n "kube-system" delete deployment tiller-deploy
should be the way to remove tiller from the cluster assuming it was deployed usinghelm init
.If it's somehow running as a daemonset, then you'll have to find the name of the daemonset using
kubectl -n kube-system get daemonsets
and delete that one.