2.2. 使用现有 Ansible Automation Platform 组件部署平台网关
您可以将已安装的 Ansible Automation Platform 的任何组件链接到新的 Ansible Automation Platform 实例。
以下流程模拟一个场景,其中将自动化控制器作为现有组件,并希望添加自动化中心和 Event-Driven Ansible。
流程
- 登录到 Red Hat OpenShift Container Platform。
-
进入到
。 - 选择 Ansible Automation Platform Operator 部署。
- 点 并编辑您的 更新频道 到 stable-2.5。
- 点 ,在 Ansible Automation Platform 标题中点 。
在 Create Ansible Automation Platform 页面中,在 Name 字段中输入您的实例的名称。
-
在部署 Ansible Automation Platform 实例时,请确保将
auto_update设置为现有自动化控制器实例上的默认值false,以便集成正常工作。
-
在部署 Ansible Automation Platform 实例时,请确保将
点 并复制以下内容:
apiVersion: aap.ansible.com/v1alpha1 kind: AnsibleAutomationPlatform metadata: name: example-aap namespace: aap spec: database: resource_requirements: requests: cpu: 200m memory: 512Mi storage_requirements: requests: storage: 100Gi # Platform image_pull_policy: IfNotPresent # Components controller: disabled: false name: existing-controller-name eda: disabled: false hub: disabled: false ## uncomment if using file storage for Content pod storage_type: file file_storage_storage_class: <your-read-write-many-storage-class> file_storage_size: 10Gi ## uncomment if using S3 storage for Content pod # storage_type: S3 # object_storage_s3_secret: example-galaxy-object-storage ## uncomment if using Azure storage- 对于新组件,如果没有指定名称,则会生成默认名称。
- 点 。
要访问您的新实例,请参阅访问平台网关。
注意如果您有一个带有受管 Postgres pod 的现有控制器,则在创建自动化控制器实例的 Ansible Automation Platform 资源后,将继续使用该原始 Postgres pod。如果您要进行全新安装,则所有实例都会有一个 Postgres 受管 pod。