Kaspersky Container Security

Deleting policies

March 27, 2024

ID 266509

You can delete security policies if your account has been assigned at least one role that the policy's creator had at the time of the policy's creation. You also need rights to manage the corresponding types of policies in order to delete them.

To delete a policy:

  1. Open the list of configured scanner policies, assurance policies, response policies or runtime policies.
  2. In the line containing the name of the integration that you want to delete, click the delete icon ("Delete" icon.).
  3. In the window that opens, confirm the action.

If security policy configuration errors block Kaspersky Container Security and you cannot manage the solution using the Management Console, the security policies must be deleted manually.

To manually delete a policy and recover the solution:

  1. Run the following command to remove the Agents (kube-agent and node-agent) as applicable:

    kubectl delete deployment kube-agent

    kubectl delete daemonset node-agent

  2. Delete all customer resources in the target cluster by running the following command:

    kubectl get crd -o name | grep 'kcssecurityprofiles.securityprobe.kcs.com' | xargs kubectl delete

  3. Restart all Kaspersky Container Security pods and access the Management Console.
  4. Make the necessary changes to the security policies.
  5. Install the Agents using the instruction in the .YAML format.

Did you find this article helpful?
What can we do better?
Thank you for your feedback! You're helping us improve.
Thank you for your feedback! You're helping us improve.