2.2. 使用现有 Ansible Automation Platform 组件部署平台网关


您可以将已安装的 Ansible Automation Platform 的任何组件链接到新的 Ansible Automation Platform 实例。

以下流程模拟一个场景,其中将自动化控制器作为现有组件,并希望添加自动化中心和 Event-Driven Ansible。

流程

  1. 登录到 Red Hat OpenShift Container Platform。
  2. 进入到 Operators Installed Operators
  3. 选择 Ansible Automation Platform Operator 部署。
  4. Subscriptions 并编辑您的 更新频道stable-2.5
  5. Details,在 Ansible Automation Platform 标题中点 Create instance
  6. Create Ansible Automation Platform 页面中,在 Name 字段中输入您的实例的名称。

    • 在部署 Ansible Automation Platform 实例时,请确保将 auto_update 设置为现有自动化控制器实例上的默认值 false,以便集成正常工作。
  7. YAML 视图 并复制以下内容:

    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
    1. 对于新组件,如果没有指定名称,则会生成默认名称。
  8. Create
  9. 要访问您的新实例,请参阅访问平台网关

    注意

    如果您有一个带有受管 Postgres pod 的现有控制器,则在创建自动化控制器实例的 Ansible Automation Platform 资源后,将继续使用该原始 Postgres pod。如果您要进行全新安装,则所有实例都会有一个 Postgres 受管 pod。

Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部