9.3. 将数据迁移到 Ansible Automation Platform Operator
将 2.5 容器化或 RPM 安装的 RPM 部署迁移到 OpenShift Container Platform 时,您必须使用凭证创建一个 secret,以便从原始部署访问 PostgreSQL 数据库,然后在创建 Ansible Automation Platform 对象时指定它。
重要
Operator 目前不支持 Event-Driven Ansible 迁移。
先决条件
您已完成以下步骤:
9.3.1. 创建 Ansible Automation Platform 对象
使用以下步骤创建 AnsibleAutomationPlatform 自定义资源对象。
流程
- 登录到 Red Hat OpenShift Container Platform。
-
进入到
。 - 选择项目命名空间中安装的 Ansible Automation Platform Operator。
- 选择 Ansible Automation Platform 选项卡。
- 单击 。
Seclect YAML 视图 并粘贴以下内容,相应地修改:
--- apiVersion: aap.ansible.com/v1alpha1 kind: AnsibleAutomationPlatform metadata: name: myaap spec: postgres_configuration_secret: external-postgres-configuration controller: disabled: false postgres_configuration_secret: external-controller-postgres-configuration secret_key_secret: controller-secret-key hub: disabled: false postgres_configuration_secret: external-hub-postgres-configuration db_fields_encryption_secret: hub-db-fields-encryption-secret
- 点 。