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>.

 


    • Related Articles

    • How to uninstall the Site24x7 Windows Server Monitoring Agent

      Method 1: To uninstall the Site24x7 Windows Server Monitoring Agent, click the link below: https://staticdownloads.site24x7.com/server/Site24x7WindowsAgentUninstall.zip Unzip and execute the Uninstall.bat file in the Command Prompt as an ...
    • How to enable Kubernetes monitoring on clusters that have arm-based nodes

      If you would like to add a Kubernetes monitor for your clusters that have arm-based nodes, ensure that you have followed the steps below: Download the latest site24x7-agent.yaml file from the Site24x7 web console. Replace the image name ...
    • How to migrate Kubernetes monitors from one Site24x7 account to another

      Use case An existing Site24x7 user has Kubernetes monitoring in a Site24x7 account and plans to migrate his Kubernetes monitors to a different account. The historic data and the current display name of the Kubernetes monitors will not be migrated. ...
    • Unable to use the latest features and the new metrics in Kubernetes

      You need to upgrade your Site24x7 Kubernetes monitoring agent to derive the new metrics and use the latest features. To do this, follow the below steps: Download the latest site24x7-agent.yaml from the Site24x7 web console. Apply the YAML using the ...
    • Licensing for Kubernetes monitoring

      The licensing for the Kubernetes monitors is as follows: Component Licensing Cluster One cluster monitor consumes one basic monitor license Nodes One node monitor consumes two host licenses* *The first 10 containers on each node are free. After that, ...