4.2. am64 부팅 이미지를 사용하여 클러스터에 다중 아키텍처 컴퓨팅 머신 세트 추가

ARM64 컴퓨팅 노드를 클러스터에 추가하려면 ARM 64 부팅 이미지를 사용하는 Azure 컴퓨팅 머신 세트를 생성해야 합니다. Azure에서 자체 사용자 지정 컴퓨팅 머신 세트를 생성하려면 "Azure에서 컴퓨팅 머신 세트 생성"을 참조하십시오.

사전 요구 사항

  • OpenShift CLI(oc)를 설치합니다.

절차

  • 컴퓨팅 머신 세트를 생성하고 다음 명령을 사용하여 resourceIDvmSize 매개변수를 수정합니다. 이 컴퓨팅 머신 세트는 클러스터 의 machines64 작업자 노드를 제어합니다.

    $ oc create -f arm64-machine-set-0.yaml

    ARM64 부팅 이미지가 포함된 샘플 YAML 컴퓨팅 머신 세트

    apiVersion: machine.openshift.io/v1beta1
    kind: MachineSet
    metadata:
      labels:
        machine.openshift.io/cluster-api-cluster: <infrastructure_id>
        machine.openshift.io/cluster-api-machine-role: worker
        machine.openshift.io/cluster-api-machine-type: worker
      name: <infrastructure_id>-arm64-machine-set-0
      namespace: openshift-machine-api
    spec:
      replicas: 2
      selector:
        matchLabels:
          machine.openshift.io/cluster-api-cluster: <infrastructure_id>
          machine.openshift.io/cluster-api-machineset: <infrastructure_id>-arm64-machine-set-0
      template:
        metadata:
          labels:
            machine.openshift.io/cluster-api-cluster: <infrastructure_id>
            machine.openshift.io/cluster-api-machine-role: worker
            machine.openshift.io/cluster-api-machine-type: worker
            machine.openshift.io/cluster-api-machineset: <infrastructure_id>-arm64-machine-set-0
        spec:
          lifecycleHooks: {}
          metadata: {}
          providerSpec:
            value:
              acceleratedNetworking: true
              apiVersion: machine.openshift.io/v1beta1
              credentialsSecret:
                name: azure-cloud-credentials
                namespace: openshift-machine-api
              image:
                offer: ""
                publisher: ""
                resourceID: /resourceGroups/${RESOURCE_GROUP}/providers/Microsoft.Compute/galleries/${GALLERY_NAME}/images/rhcos-arm64/versions/1.0.0 1
                sku: ""
                version: ""
              kind: AzureMachineProviderSpec
              location: <region>
              managedIdentity: <infrastructure_id>-identity
              networkResourceGroup: <infrastructure_id>-rg
              osDisk:
                diskSettings: {}
                diskSizeGB: 128
                managedDisk:
                  storageAccountType: Premium_LRS
                osType: Linux
              publicIP: false
              publicLoadBalancer: <infrastructure_id>
              resourceGroup: <infrastructure_id>-rg
              subnet: <infrastructure_id>-worker-subnet
              userDataSecret:
                name: worker-user-data
              vmSize: Standard_D4ps_v5 2
              vnet: <infrastructure_id>-vnet
              zone: "<zone>"

    1
    resourceID 매개 변수를 arm64 부팅 이미지로 설정합니다.
    2
    vmSize 매개변수를 설치에 사용된 인스턴스 유형으로 설정합니다. 일부 예제 인스턴스 유형은 Standard_D4ps_v5 또는 D8ps 입니다.

검증

  1. 다음 명령을 입력하여 새 ARM64 시스템이 실행 중인지 확인합니다.

    $ oc get machineset -n openshift-machine-api

    출력 예

    NAME                                                DESIRED  CURRENT  READY  AVAILABLE  AGE
    <infrastructure_id>-arm64-machine-set-0                   2        2      2          2  10m

  2. 다음 명령을 사용하여 노드가 준비되고 측정 가능한지 확인할 수 있습니다.

    $ oc get nodes