To edit a Kubernetes hardening policy, perform the following procedure.
Procedure
- On the left navigation pane, click Enforce > K8s Policies.
- Click the Hardening Policies tab.
- 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.
- Change the scope to which the policy is linked and click Next.
- 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.
- 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
.