To delete the Kubernetes Sensor from a cluster, you must delete the cluster from the Carbon Black Cloud console.

Prerequisites

Before you begin, open both the Carbon Black Cloud console and a terminal window.

Procedure

  1. On the left navigation pane of the console, do one of the following depending on your system configuration and role:
    • If you are assigned Kubernetes Security DevOps role and your system has only Containers Security feature,

      Click Inventory > Clusters.

    • If you are assigned any other role and your system has Container security and other Carbon Black Cloud features,

      click Inventory > Kubernetes > Clusters.

  2. Locate the cluster to delete from the console.
  3. In the Options dropdown menu, click Delete.
    Screenshot of the Delete Cluster window
  4. Select Bash or PowerShell from the dropdown menu.
  5. Copy the command into your terminal window and run it.
    This step deletes the Kubernetes Sensor and the Carbon Black Cloud operator from your cluster.
    Important: If you execute the command without removing the cluster from the console in the next step, the cluster status becomes Critical after a certain time. In this case, you can re-add or remove the cluster.
  6. Click Delete.
    Important: If you click Delete without executing the command from the previous step, the Kubernetes Sensor and the Carbon Black Cloud operator remain on your cluster without any activity.