Updated on 2024-11-15 GMT+08:00

Uninstalling the Agent from a Cluster

After the uninstallation, some container-related functions, such as container firewall and container cluster protection, will be unavailable for the cluster assets connected to HSS through agents. To continue using container security services, you are advised to uninstall the cluster agent by following the instructions provided in this section, and then refer to Installing an Agent in a Cluster to connect to container assets again.

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. 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 tree on the left, choose Installation & Configuration > Server Install & Config.
  8. Click the Agents tab. Uninstall the agent from all container nodes in the CCE cluster.

    For details, see Uninstalling the 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 tree on the left, choose Installation & Configuration > Server Install & Config.
  6. Click the Agents tab. Uninstall the agent from all container nodes in the cluster.

    For details, see Uninstalling the Agent.