Updated on 2024-05-16 GMT+08:00

Uninstalling an Agent from a Cluster

If you no longer need HSS to protect the containers in your cluster, uninstall the agent from the cluster. After the agent is uninstalled, HSS will stop checking and protecting containers, and the information about alarms and detected vulnerabilities will be deleted.

Uninstalling an Agent from a CCE Cluster

  1. Log in to the management console.
  2. In the upper left corner of the page, select a region, click , and choose Containers > Cloud Container Engine. The CCE console is displayed.
  3. Click the name of a cluster to enter its details page.
  4. In the navigation pane, choose Workloads.
  5. Click the DaemonSets tab and delete the workload install-agent-ds.

    In the Operation column of the workload, choose More > Delete.

    Figure 1 Deleting install-agent-ds

  6. In the upper left corner of the page, select a region, click , and choose Security & Compliance > HSS.
  7. In the navigation pane, choose Installation & Configuration.
  8. Click the Agents tab. Uninstall the agent from all container nodes in the CCE cluster.

    For details, see Uninstalling an Agent.

Uninstalling an Agent from an On-Premises Cluster

  1. Log in to the Kubernetes cluster.
  2. Run the following command to delete the workload install-agent-ds:

    kubectl delete ds install-agent-ds -n default

  3. Log in to the management console.
  4. In the upper left corner of the page, select a region, click , and choose Security & Compliance > HSS.
  5. In the navigation pane, choose Installation & Configuration.
  6. Click the Agents tab. Uninstall the agent from all container nodes in the cluster.

    For details, see Uninstalling an Agent.