To edit or delete a Kubernetes custom rule, perform the following procedure.

Note:
  • You can edit custom rules after creating them, even if you have included them in Kubernetes hardening policies.
  • You cannot delete custom rules if they are part of Kubernetes hardening policies.

Procedure

  1. On the left navigation pane, click Enforce > K8s Policies.
  2. Click the Rules tab.
  3. Locate the rule to edit and click the arrow Right arrow icon at the end of the row.
  4. In the dropdown menu in the right panel, select an action.
    • To add a rule to template, click Add to templates, select one or more custom templates, and click Save.
    • To update the rule, click Edit. The Edit Custom Rule window shows. You cannot change the rule type. Click Next and follow the configuration wizard steps to modify the rule. Click Save.
    • To duplicate a rule, click Duplicate. Rename and customize the new rule.
    • To delete a rule, click Delete and then click OK to confirm the deletion.