1.3.17. RHOSP에서 네트워크 리소스 생성

자체 인프라의 RHOSP(Red Hat OpenStack Platform)에 OpenShift Container Platform을 설치하는 데 필요한 네트워크 리소스를 생성합니다. 시간을 절약하려면 보안 그룹, 네트워크, 서브넷, 라우터 및 포트를 생성하는 제공된 Ansible 플레이북을 실행합니다.

사전 요구 사항

  • Python 3가 시스템에 설치되어 있습니다.
  • "플레이북 종속 항목 다운로드"에서 모듈을 다운로드했습니다.
  • "설치 플레이북 다운로드"에서 플레이북을 다운로드하셨습니다.

프로세스

  1. 선택 사항: inventory.yaml 플레이북에 외부 네트워크 값을 추가합니다.

    inventory.yaml Ansible 플레이북의 외부 네트워크 값 예

    ...
          # The public network providing connectivity to the cluster. If not
          # provided, the cluster external connectivity must be provided in another
          # way.
    
          # Required for os_api_fip, os_ingress_fip, os_bootstrap_fip.
          os_external_network: 'external'
    ...

    중요

    inventory.yaml 파일에 os_external_network 값을 지정하지 않은 경우 VM이 Glance 및 외부 연결에 직접 액세스할 수 있는지 확인해야 합니다.

  2. 선택 사항: 외부 네트워크 및 유동 IP(FIP) 주소 값을 inventory.yaml 플레이북에 추가합니다.

    inventory.yaml Ansible 플레이북의 FIP 값 예

    ...
          # OpenShift API floating IP address. If this value is non-empty, the
          # corresponding floating IP will be attached to the Control Plane to
          # serve the OpenShift API.
          os_api_fip: '203.0.113.23'
    
          # OpenShift Ingress floating IP address. If this value is non-empty, the
          # corresponding floating IP will be attached to the worker nodes to serve
          # the applications.
          os_ingress_fip: '203.0.113.19'
    
          # If this value is non-empty, the corresponding floating IP will be
          # attached to the bootstrap machine. This is needed for collecting logs
          # in case of install failure.
          os_bootstrap_fip: '203.0.113.20'

    중요

    os_api_fipos_ingress_fip에 대한 값을 정의하지 않으면 설치 후 네트워크 구성을 수행해야 합니다.

    os_bootstrap_fip의 값을 정의하지 않으면 설치 프로그램이 실패한 설치에서 디버깅 정보를 다운로드할 수 없습니다.

    자세한 정보는 "환경에 대한 액세스 활성화"를 참조하십시오.

  3. 명령줄에서 security-groups.yaml 플레이북을 실행하여 보안 그룹을 생성합니다.

    $ ansible-playbook -i inventory.yaml security-groups.yaml
  4. 명령줄에서 network.yaml 플레이북을 실행하여 네트워크, 서브넷 및 라우터를 생성합니다.

    $ ansible-playbook -i inventory.yaml network.yaml
  5. 선택 사항: Nova 서버에서 사용하는 기본 해결 프로그램을 제어하려면 RHOSP CLI 명령을 실행합니다.

    $ openstack subnet set --dns-nameserver <server_1> --dns-nameserver <server_2> "$INFRA_ID-nodes"