1.3. Red Hat OpenShift Container Platform CLI에서 Red Hat Ansible Automation Platform Operator 설치


다음 지침을 사용하여 oc 명령을 사용하여 OpenShift Container Platform CLI(명령줄 인터페이스)에서 Red Hat OpenShift Container Platform에 Ansible Automation Platform Operator를 설치합니다.

1.3.1. 네임스페이스에 Ansible Automation Platform Operator 설치

네임스페이스를 Operator에 가입하려면 다음 절차를 사용하십시오.

중요

OpenShift 클러스터의 기본 네임스페이스에 Ansible Automation Platform을 배포할 수 없습니다. 'ansible-automation-platform' 네임스페이스를 사용하는 것이 좋습니다. 사용자 지정 네임스페이스를 사용할 수 있지만 Ansible Automation Platform만 실행해야 합니다.

사전 요구 사항

  • operator 설치 권한이 있는 계정을 사용하여 Red Hat OpenShift Container Platform에 액세스할 수 있습니다.
  • OpenShift Container Platform CLI oc 명령이 로컬 시스템에 설치되어 있습니다. 자세한 내용은 Red Hat OpenShift Container Platform 제품 설명서에서 OpenShift CLI 설치를 참조하십시오.

프로세스

  1. Operator에 대한 프로젝트를 생성합니다.

    oc new-project ansible-automation-platform
    Copy to Clipboard Toggle word wrap
  2. sub.yaml 이라는 파일을 생성합니다.
  3. 다음 YAML 코드를 sub.yaml 파일에 추가합니다.

    ---
    apiVersion: operators.coreos.com/v1
    kind: OperatorGroup
    metadata:
      name: ansible-automation-platform-operator
      namespace: ansible-automation-platform
    spec:
      targetNamespaces:
        - ansible-automation-platform
    ---
    apiVersion: operators.coreos.com/v1alpha1
    kind: Subscription
    metadata:
      name: ansible-automation-platform
      namespace: ansible-automation-platform
    spec:
      channel: 'stable-2.6'
      installPlanApproval: Automatic
      name: ansible-automation-platform-operator
      source: redhat-operators
      sourceNamespace: openshift-marketplace
    ---
    Copy to Clipboard Toggle word wrap

    이 파일은 ansible-automation-platform 네임스페이스를 ansible-automation-platform operator에 서브스크립션하는 ansible-automation-platform -platform 이라는 Subscription 오브젝트를 생성합니다.

  4. oc apply 명령을 실행하여 sub.yaml 파일에 지정된 오브젝트를 생성합니다.

    oc apply -f sub.yaml
    Copy to Clipboard Toggle word wrap
  5. oc get csv -n ansible-automation-platform 명령을 사용하기 전에 CSV PHASE에서 "Succeeded"를 보고하는지 확인합니다.

    oc get csv -n ansible-automation-platform
    
    NAME                               DISPLAY                       VERSION              REPLACES                           PHASE
    aap-operator.v2.6.0-0.1728520175   Ansible Automation Platform   2.6.0+0.1728520175   aap-operator.v2.6.0-0.1727875185   Succeeded
    Copy to Clipboard Toggle word wrap
  6. ansible-automation-platform 네임스페이스에 example 이라는 AnsibleAutomationPlatform 오브젝트를 생성합니다.

    Ansible Automation Platform 및 해당 구성 요소를 예에서 변경하려면 metadata: 섹션의 name 필드를 편집하고 예제를 사용할 이름으로 교체합니다.

    oc apply -f - <<EOF
    apiVersion: aap.ansible.com/v1alpha1
    kind: AnsibleAutomationPlatform
    metadata:
      name: example
      namespace: ansible-automation-platform
    spec:
      # Platform
      image_pull_policy: IfNotPresent
      # Components
      controller:
        disabled: false
      eda:
        disabled: false
      hub:
        disabled: false
        ## Modify to contain your RWM storage class name
        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 for Content pod
        # storage_type: azure
        # object_storage_azure_secret: azure-secret-name
      lightspeed:
        disabled: true
    EOF
    Copy to Clipboard Toggle word wrap
맨 위로 이동
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2025 Red Hat