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 进行通信。
要替换证书,您可以:
- 从门户下载 YAML 配置文件,或者
- 使用自动升级功能
3.3.1. 通过下载 YAML 配置来缓解安全集群的内部证书 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
您可以从 RHACS 门户下载 YAML 配置文件,为 Sensor、Collector 和 Admission Controller 重新发布内部证书。
先决条件
-
要重新发出证书,必须具有
ServiceIdentity
资源的写入权限
。
流程
下载 YAML 配置文件:
-
在 RHACS 门户,导航到 Platform Configuration
Clusters。 - 在 Clusters 视图中,选择一个 Cluster 以查看其详情。
- 在集群详情面板中,选择通知中的链接 下载 YAML 配置文件,其中包含新的 OpenShift Container Platform secret,包括证书和密钥值。
-
在 RHACS 门户,导航到 Platform Configuration
将新的 YAML 配置文件应用到集群。
在 OpenShift Container Platform 中:
oc apply -f <secret_file.yaml>
$ oc apply -f <secret_file.yaml>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 对于 Kubernetes:
kubectl apply -f <secret_file.yaml>
$ kubectl apply -f <secret_file.yaml>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow