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:

    1. kubectl delete -f  site24x7-agent.yaml


or

    1. kubectl delete -n <namespace> \
    2. ds/site24x7-agent \
    3. sa/site24x7-agent \
    4. lease/site24x7-agent \
    5. cm/site24x7 \
    6. deploy/site24x7-kube-state-metrics \
    7. svc/site24x7-kube-state-metrics \
    8. sa/site24x7-kube-state-metrics \
    9. --ignore-not-found

    1. kubectl delete clusterrole, clusterrolebinding \
    2. site24x7 site24x7-kube-state-metrics \
    3. --ignore-not-found
NotesInput your namespace instead of <namespace>.

  • Deletion command for a DaemonSet agent deployed using Helm:

    1. helm uninstall <release_name>\
    2. helm repo remove site24x7

NotesInput your release name instead of  <release_name>.