You are viewing documentation for a release that is no longer maintained. To view the documentation for the most recent version, see the latest RHACS docs.
5.2. 修改现有安全策略
您可以编辑您创建的策略以及 Red Hat Advanced Cluster Security for Kubernetes 提供的现有默认策略。
流程
-
在 RHACS 门户网站中,导航至 Platform Configuration
Policies。 - 在 Policies 页面中,选择您要编辑的策略。
-
选择 Actions
Edit policy。 - 修改策略详细。您可以修改策略名称、严重性、类别、描述、比率和指导。您还可以通过从 Attach notifiers 部分下的 available Notifiers 部分选择将通知附加到策略。
- 点击 Next。
- 在 Policy behavior 部分中,为策略选择 Lifecycle 阶段 和 事件源。
- 选择一个 Response 方法,以解决策略违反情况。
- 点击 Next。
在 Policy criteria 部分中,展开 Drag out policy 字段 部分中的类别。使用拖放策略字段为策略标准指定逻辑条件。
注意您不能编辑默认策略的策略条件。
- 点击 Next。
- 在 Policy Scope 部分中,修改 Restrict by scope, Exclude by scope, 和 Exclude images 设置。
- 点击 Next。
- 在 Review policy 部分,预览策略违反情况。
- 点击 Save。