Tiller is not working properly in my kubernetes cluster. I want to delete everything Tiller. Tiller (2.5.1) has 1 Deployment, 1 ReplicaSet and 1 Pod.
I tried: kubectl delete deployment tiller-deploy -n kube-system
- results in "deployment "tiller-deploy" deleted"
- however, tiller-deploy is immediately recreated
- kubectl get deployments -n kube-system shows tiller-deploy running again
I also tried: kubectl delete rs tiller-deploy-393110584 -n kube-system
- results in "replicaset "tiller-deploy-2745651589" deleted"
- however, tiller-deploy-2745651589 is immediately recreated
- kubectl get rs -n kube-system shows tiller-deploy-2745651589 running again
What is the correct way to permanently delete Tiller?
To uninstall tiller from a kubernetes cluster:
To delete failed tiller from a kubernetes cluster:
Turns out that it was running as replicaset:
worked for me
helm reset --force
didn't remove the tiller.You can also try below command
Kubectl get hpa --all-namespaces( OR -n kube-system)
In normal tiller deployment, they use replica set. For your set up there might be a HorizontalPodAutoscaler object which is targeting the replica sets for tiller.
You can delete the HPA first and then delete the associated replicasets, pods, configmaps OR you can reset helm using "helm reset" command.
If you want to remove tiller from your cluster the cleanest way it's by removing all the components deployed during the installation.
If you already know the namespace where tiller its deployed:
where
app
its the label assigned and will identify all component(replication controller, deployments, service, etc).You can describe the pod to verify the labels:
You have to uninstall 3 things to completely get rid of tiller:
Be sure to backup the secret as it store all the certificates if TLS is enabled.