how to delete tiller from kubernetes cluster

前端 未结 6 2083

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:

6条回答
  •  滥情空心
    2021-02-03 17:49

    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:

    $ kubectl delete all -l app=helm -n kube-system
    pod "tiller-deploy-8557598fbc-5b2g7" deleted
    service "tiller-deploy" deleted
    deployment.apps "tiller-deploy" deleted
    replicaset.apps "tiller-deploy-75f6c87b87" deleted
    replicaset.apps "tiller-deploy-8557598fbc" deleted
    

    Be careful with the command, will delete all in the namespace indicated and with the corresponding label.

    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:

    $ kubectl describes pod tiller-deploy-8557598fbc-5b2g7 -n kube-system
    Name: tiller-deploy-8557598fbc-5b2g7
    Namespace: kube-system
    Priority: 0
    PriorityClassName: 
    Node: srvlpi03 / 192.168.1.133
    Start Time: Tue, 20 Aug 2019 15:51:03 -0400
    Labels: app = helm
            name = tiller
            pod-template-hash = 8557598fbc
    

提交回复
热议问题