How to uninstall the Site24x7 Kubernetes monitoring agent

How to uninstall the Site24x7 Kubernetes monitoring agent

Execute the below commands to uninstall the Site24x7 Kubernetes monitoring agent from your cluster:

  • Deletion command for the DaemonSet agent deployed using a YAML file:

            kubectl delete -f site24x7-agent.yaml


or

            kubectl delete ds,sa site24x7-agent -n <namespace>; \

            kubectl delete clusterrole,clusterrolebinding site24x7; 

or

            kubectl delete ds,sa,clusterrole,clusterrolebinding -A -l app.kubernetes.io/owner=site24x7

Input your namespace instead of <namespace>.

  • Deletion command for kube-state-metrics deployed using a YAML file:

            kubectl delete -f site24x7-kube-state-metrics.yaml

or 

            kubectl delete deploy,sa kube-state-metrics -n kube-system; \

            kubectl delete clusterrole,clusterrolebinding kube-state-metrics;

or 

            kubectl delete deploy,sa,clusterrole,clusterrolebinding -A -l app.kubernetes.io/name=site24x7-kube-state-metrics

 

  • Deletion command for a DaemonSet agent deployed using Helm:


           helm uninstall <release_name>\

           helm repo remove site24x7

Input your release name instead of <release_name>.