2.8. 为 OpenShift Container Platform 部署拉取 secret
注意
这不适用于 Microsoft Azure 上的 Ansible Automation Platform。
如果您使用自动化控制器提供的默认执行环境在远程执行节点上运行,您必须在包含拉取执行环境镜像的凭证的自动化控制器中添加 pull secret。
要做到这一点,在自动化控制器命名空间中创建 pull secret,并在 Operator 中配置 ee_pull_credentials_secret
参数,如下所示:
流程
使用以下命令创建 secret:
oc create secret generic ee-pull-secret \ --from-literal=username=<username> \ --from-literal=password=<password> \ --from-literal=url=registry.redhat.io
通过编辑部署规格将
ee_pull_credentials_secret
和ee-pull-secret
添加到规格中:oc edit automationcontrollers aap-controller-o yaml
并添加以下内容:
spec ee_pull_credentials_secret=ee-pull-secret
- 要从自动化控制器 UI 管理实例,必须具有 System Administrator 或 System Auditor 权限。