13.14. AWS 인프라용 RHCOS AMI


Red Hat은 OpenShift Container Platform 노드에 수동으로 지정할 수 있는 다양한 AWS 리전 및 인스턴스 아키텍처에 유효한 RHCOS(Red Hat Enterprise Linux CoreOS) AMI를 제공합니다.

참고

사용자 고유의 AMI를 가져 와서 RHCOS AMI가 게시되지 않은 리전에 설치할 수도 있습니다.

Expand
표 13.3. x86_64 RHCOS AMIs
AWS 영역AWS AMI

af-south-1

ami-052b3e6b060b5595d

ap-east-1

ami-09c502968481ee218

ap-northeast-1

ami-06b1dbe049e3c1d23

ap-northeast-2

ami-08add6eb5aa1c8639

ap-northeast-3

ami-0af4dfc64506fe20e

ap-south-1

ami-09b1532dd3d63fdc0

ap-south-2

ami-0a915cedf8558e600

ap-southeast-1

ami-0c914fd7a50130c9e

ap-southeast-2

ami-04b54199f4be0ec9d

ap-southeast-3

ami-0be3ee78b9a3fdf07

ap-southeast-4

ami-00a44d7d5054bb5f8

ca-central-1

ami-0bb1fd49820ea09ae

eu-central-1

ami-03d9cb166a11c9b8a

eu-central-2

ami-089865c640f876630

eu-north-1

ami-0e94d896e72eeae0d

eu-south-1

ami-04df4e2850dce0721

eu-south-2

ami-0d80de3a5ba722545

eu-west-1

ami-066f2d86026ef97a8

eu-west-2

ami-0f1c0b26b1c99499d

eu-west-3

ami-0f639505a9c74d9a2

me-central-1

ami-0fbb2ece8478f1402

me-south-1

ami-01507551558853852

sa-east-1

ami-097132aa0da53c981

us-east-1

ami-0624891c612b5eaa0

us-east-2

ami-0dc6c4d1bd5161f13

us-gov-east-1

ami-0bab20368b3b9b861

us-gov-west-1

ami-0fe8299f8e808e720

us-west-1

ami-0c03b7e5954f10f9b

us-west-2

ami-0f4cdfd74e4a3fc29

Expand
표 13.4. aarch64 RHCOS AMI
AWS 영역AWS AMI

af-south-1

ami-0d684ca7c09e6f5fc

ap-east-1

ami-01b0e1c24d180fe5d

ap-northeast-1

ami-06439c626e2663888

ap-northeast-2

ami-0a19d3bed3a2854e3

ap-northeast-3

ami-08b8fa76fd46b5c58

ap-south-1

ami-0ec6463b788929a6a

ap-south-2

ami-0f5077b6d7e1b10a5

ap-southeast-1

ami-081a6c6a24e2ee453

ap-southeast-2

ami-0a70049ac02157a02

ap-southeast-3

ami-065fd6311a9d7e6a6

ap-southeast-4

ami-0105993dc2508c4f4

ca-central-1

ami-04582d73d5aad9a85

eu-central-1

ami-0f72c8b59213f628e

eu-central-2

ami-0647f43516c31119c

eu-north-1

ami-0d155ca6a531f5f72

eu-south-1

ami-02f8d2794a663dbd0

eu-south-2

ami-0427659985f520cae

eu-west-1

ami-04e9944a8f9761c3e

eu-west-2

ami-09c701f11d9a7b167

eu-west-3

ami-02cd8181243610e0d

me-central-1

ami-03008d03f133e6ec0

me-south-1

ami-096bc3b4ec0faad76

sa-east-1

ami-01f9b5a4f7b8c50a1

us-east-1

ami-09ea6f8f7845792e1

us-east-2

ami-039cdb2bf3b5178da

us-gov-east-1

ami-0fed54a5ab75baed0

us-gov-west-1

ami-0fc5be5af4bb1d79f

us-west-1

ami-018e5407337da1062

us-west-2

ami-0c0c67ef81b80e8eb

13.14.1. 게시된 RHCOS AMI가 없는 AWS 리전

Red Hat Enterprise Linux CoreOS (RHCOS) Amazon Machine Image (AMI) 또는 AWS 소프트웨어 개발 키트 (SDK)에 대한 기본 지원없이 Amazon Web Services (AWS) 리전에 OpenShift Container Platform 클러스터를 배포할 수 있습니다. 게시된 AMI를 AWS 리전에서 사용할 수 없는 경우 클러스터를 설치하기 전에 사용자 지정 AMI를 업로드할 수 있습니다.

AWS SDK에서 지원하지 않는 리전에 배포하고 사용자 지정 AMI를 지정하지 않은 경우 설치 프로그램은 us-east-1 AMI를 사용자 계정에 자동으로 복사합니다. 그 다음 설치 프로그램은 기본 또는 사용자 지정 KMS (Key Management Service) 키를 사용하여 암호화 된 EBS 볼륨에서 컨트롤 플레인 시스템을 생성합니다. 이를 통해 AMI는 게 된 RHCOS AMI와 동일한 프로세스 워크 플로를 실행할 수 있습니다.

RHCOS AMI에 대한 기본 지원이 없는 리전은 게시되지 않기 때문에 클러스터 생성 중에 터미널에서 선택할 수 없습니다. 그러나 install-config.yaml 파일에서 사용자 지정 AMI를 구성하여 이 리전에 설치할 수 있습니다.

13.14.2. AWS에서 사용자 지정 RHCOS AMI 업로드

사용자 지정 Amazon Web Services (AWS) 리전에 배포하는 경우 해당 리전에 속하는 사용자 지정 Red Hat Enterprise Linux CoreOS (RHCOS) Amazon 머신 이미지 (AMI)를 업로드해야 합니다.

사전 요구 사항

  • AWS 계정을 구성했습니다.
  • 필요한 IAM 서비스 역할로 Amazon S3 버킷을 생성했습니다.
  • RHCOS VMDK 파일을 Amazon S3에 업로드했습니다. RHCOS VMDK 파일은 설치하는 OpenShift Container Platform 버전과 같거나 그 이하의 버전이어야 합니다.
  • AWS CLI를 다운로드하여 컴퓨터에 설치했습니다. Install the AWS CLI Using the Bundled Installer를 참조하십시오.

프로세스

  1. AWS 프로필을 환경 변수로 내보냅니다.

    $ export AWS_PROFILE=<aws_profile> 
    1
  2. 사용자 지정 AMI와 연결할 리전을 환경 변수로 내보냅니다.

    $ export AWS_DEFAULT_REGION=<aws_region> 
    1
  3. Amazon S3에 업로드한 RHCOS 버전을 환경 변수로 내보냅니다.

    $ export RHCOS_VERSION=<version> 
    1
    1 1 1
    4.13.0 과 같은 RHCOS VMDK 버전.
  4. Amazon S3 버킷 이름을 환경 변수로 내보냅니다.

    $ export VMIMPORT_BUCKET_NAME=<s3_bucket_name>
  5. container.json 파일을 만들고 RHCOS VMDK 파일을 정의합니다.

    $ cat <<EOF > containers.json
    {
       "Description": "rhcos-${RHCOS_VERSION}-x86_64-aws.x86_64",
       "Format": "vmdk",
       "UserBucket": {
          "S3Bucket": "${VMIMPORT_BUCKET_NAME}",
          "S3Key": "rhcos-${RHCOS_VERSION}-x86_64-aws.x86_64.vmdk"
       }
    }
    EOF
  6. RHCOS 디스크를 Amazon EBS 스냅샷으로 가져옵니다.

    $ aws ec2 import-snapshot --region ${AWS_DEFAULT_REGION} \
         --description "<description>" \ 
    1
    
         --disk-container "file://<file_path>/containers.json" 
    2
    1
    가져온 RHCOS 디스크에 대한 설명 (예: rhcos-$ {RHCOS_VERSION} -x86_64-aws.x86_64)입니다.
    2
    RHCOS 디스크를 설명하는 JSON 파일의 파일 경로입니다. JSON 파일에는 Amazon S3 버킷 이름과 키가 포함되어 있어야합니다.
  7. 이미지 가져 오기 상태를 확인합니다.

    $ watch -n 5 aws ec2 describe-import-snapshot-tasks --region ${AWS_DEFAULT_REGION}

    출력 예

    {
        "ImportSnapshotTasks": [
            {
                "Description": "rhcos-4.7.0-x86_64-aws.x86_64",
                "ImportTaskId": "import-snap-fh6i8uil",
                "SnapshotTaskDetail": {
                    "Description": "rhcos-4.7.0-x86_64-aws.x86_64",
                    "DiskImageSize": 819056640.0,
                    "Format": "VMDK",
                    "SnapshotId": "snap-06331325870076318",
                    "Status": "completed",
                    "UserBucket": {
                        "S3Bucket": "external-images",
                        "S3Key": "rhcos-4.7.0-x86_64-aws.x86_64.vmdk"
                    }
                }
            }
        ]
    }

    SnapshotId를 복사하여 이미지를 등록합니다.

  8. RHCOS 스냅 샷에서 사용자 지정 RHCOS AMI를 생성합니다.

    $ aws ec2 register-image \
       --region ${AWS_DEFAULT_REGION} \
       --architecture x86_64 \ 
    1
    
       --description "rhcos-${RHCOS_VERSION}-x86_64-aws.x86_64" \ 
    2
    
       --ena-support \
       --name "rhcos-${RHCOS_VERSION}-x86_64-aws.x86_64" \ 
    3
    
       --virtualization-type hvm \
       --root-device-name '/dev/xvda' \
       --block-device-mappings 'DeviceName=/dev/xvda,Ebs={DeleteOnTermination=true,SnapshotId=<snapshot_ID>}' 
    4
    1
    x86_64 , aarch64 , s390x 또는 ppc64le 와 같은 RHCOS VMDK 아키텍처 유형입니다.
    2
    가져온 스냅샷의 Description입니다.
    3
    RHCOS AMI의 이름입니다.
    4
    가져온 스냅샷의 SnapshotID입니다.

이러한 API에 대한 자세한 내용은 importing snapshotscreating EBS-backed AMIs에서 참조하십시오.

Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

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

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

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

Red Hat 소개

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

Theme

© 2026 Red Hat
맨 위로 이동