To edit a Kubernetes hardening policy, perform the following procedure.

Procedure

  1. On the left navigation pane, click Enforce > K8s Policies.
  2. Click the Hardening Policies tab.
  3. Click the policy name to edit it or click Edit policy in the Actions dropdown menu.
    Note: For more details about fields and rules in a runtime policy, see Kubernetes Runtime Policies and Create a Kubernetes Runtime Policy.
    1. Change the scope to which the policy is linked and click Next.
    2. Add or remove rules as necessary and click Next.
      Note: To modify or add an enforcement preset, see Assign an Enforcement Preset to a Kubernetes Hardening Policy.
    3. Confirm the policy details and click Save.
      Note: You can deactivate a rule if it triggers too many violations until the issues in your environment are resolved. To exclude the rule from the policy, toggle the state of the rule to Off.