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.
3.3. 缓解 Sensor、Collector 和 Admission Controller 的内部证书
sensor、Collector 和 Admission Controller 使用证书相互通信,并与 Central 进行通信。
要替换证书,请使用以下方法之一:
- 在安全集群中创建、下载和安装 init 捆绑包。
-
使用自动升级功能。自动执行升级仅适用于使用
roxctl
CLI 的静态清单部署。
3.3.1. 使用 init 捆绑包缓解用于安全集群的内部证书 复制链接链接已复制到粘贴板!
安全的集群包含 Collector、Sensor 和 Admission Control 组件。这些组件在与其他 Red Hat Advanced Cluster Security for Kubernetes 组件通信时,使用内置的服务器证书进行验证。
RHACS 门户在中央证书即将过期时显示信息横幅。
信息横幅仅显示证书到期日期前 15 天。
先决条件
-
要重新发出证书,必须具有
ServiceIdentity
资源的写入权限
。
安全地存储此捆绑包,因为它包含 secret。您可以在多个安全集群中使用相同的捆绑包。
流程
使用 RHACS 门户生成 init 捆绑包:
-
选择 Platform Configuration
Clusters。 - 单击 Manage Tokens。
- 导航到 Authentication Tokens 部分,再单击 Cluster Init Bundle。
- 点 Generate bundle。
- 为集群 init 捆绑包输入一个名称并点 Generate。
- 要下载生成的捆绑包,请点击 Download Kubernetes secrets file。
-
选择 Platform Configuration
要使用
roxctl
CLI 生成 init 捆绑包,请运行以下命令:roxctl -e <endpoint> -p <admin_password> central init-bundle generate <bundle_name> --output-secrets init-bundle.yaml
$ roxctl -e <endpoint> -p <admin_password> central init-bundle generate <bundle_name> --output-secrets init-bundle.yaml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
后续步骤
要在每个安全集群中创建必要的资源,请运行以下命令:
oc -n stackrox apply -f <init-bundle.yaml>
$ oc -n stackrox apply -f <init-bundle.yaml>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
3.3.2. 使用自动升级为安全集群提供内部证书 复制链接链接已复制到粘贴板!
您可以使用自动升级为 Sensor、Collector 和 Admission Controller 重新发布内部证书。
自动升级仅适用于使用 roxctl
CLI 基于静态清单的部署。请参阅安装一章中的"安装中心"一节中的" 安装中心 "。
先决条件
- 您必须为所有集群启用自动升级。
-
要重新发出证书,必须具有
ServiceIdentity
资源的写入权限
。
流程
-
在 RHACS 门户,导航到 Platform Configuration
Clusters。 - 在 Clusters 视图中,选择一个 Cluster 以查看其详情。
- 在集群详情面板中,使用自动升级选择到应用凭证 的链接。
应用自动升级时,Red Hat Advanced Cluster Security for Kubernetes 在所选集群中创建新凭证。但是,您仍然会看到一个通知。当每个 Red Hat Advanced Cluster Security for Kubernetes 服务在服务重启后使用新凭证时,通知会生效。