9.6. 在没有 Red Hat OpenShift AI Operator 的情况下管理证书
默认情况下,Red Hat OpenShift AI Operator 管理 odh-trusted-ca-bundle ConfigMap,其中包含可信 CA 捆绑包,并应用到集群中的所有非保留命名空间。每当对 CA 捆绑包进行更改时,Operator 会自动更新此 ConfigMap。
如果您的组织更喜欢独立管理可信 CA 捆绑包,例如使用 Ansible 自动化,您可以禁用此默认行为以防止 Red Hat OpenShift AI Operator 自动更新。
先决条件
- 具有集群管理员特权。
流程
-
在 OpenShift Web 控制台中,点 Operators
Installed Operators,然后点 Red Hat OpenShift AI Operator。 - 点 DSC 初始化选项卡。
- 点 default-dsci 对象。
- 点 YAML 标签。
在
spec部分中,将trustedCABundle的managementState字段的值改为Unmanaged,如下所示:spec: trustedCABundle: managementState: Unmanagedspec: trustedCABundle: managementState: UnmanagedCopy to Clipboard Copied! Toggle word wrap Toggle overflow 点击 Save。
将
managementState从Managed改为Unmanaged可防止在修改customCABundle字段时自动更新,但不会删除odh-trusted-ca-bundleConfigMap。
验证
在
spec部分中,为trustedCABundle字段设置customCABundle字段的值,例如:spec: trustedCABundle: managementState: Unmanaged customCABundle: example123spec: trustedCABundle: managementState: Unmanaged customCABundle: example123Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 点击 Save。
-
点 Workloads
ConfigMaps。 - 从项目列表中选择一个项目。
-
点
odh-trusted-ca-bundleConfigMap。 -
点 YAML 选项卡,并验证
customCABundle字段的值是否没有更新。