Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to uninstall / remove tiller from Kubernetes manually?

I've by mistake installed an unsecured configuration of tiller.

I've tried helm reset but something must have corrupted because now when I try to install helm:

$HELM_HOME has been configured at /home/chris/.helm.
Warning: Tiller is already installed in the cluster.
(Use --client-only to suppress this message, or --upgrade to upgrade Tiller to the current version.)
Happy Helming!

However if I try helm ls I get:

Error: could not find tiller.

So because helm reset is insufficient, or there is some bugs, which resources do I need to delete in order to be able to reinstall helm correctly (helm init)?

like image 235
Chris Stryczynski Avatar asked Dec 04 '18 12:12

Chris Stryczynski


2 Answers

Tiller can be uninstalled using the command

helm reset --force

or

helm reset --force --wait

It will force the clean of all resources inside the cluster. With that you are able to run helm init again.

like image 143
wolmi Avatar answered Oct 02 '22 15:10

wolmi


kubectl delete deployment tiller-deploy -n k8s-tiller
kubectl delete service tiller-deploy -n k8s-tiller
kubectl delete -n=k8s-tiller rs tiller-deploy-6f65cf89

Initially I ran init with the --namespace set as k8s-tiller

This also might be useful:

kubectl get all --all-namespaces | grep tiller
like image 23
Chris Stryczynski Avatar answered Oct 02 '22 14:10

Chris Stryczynski