8.7. 호스팅된 클러스터에서 제어 평면 업데이트
호스팅된 제어 평면에서 호스팅된 클러스터를 업데이트하여 OpenShift Container Platform 버전을 업그레이드할 수 있습니다. HostedCluster
사용자 지정 리소스(CR)의 .spec.release
는 제어 평면의 버전을 보여줍니다. HostedCluster
는 .spec.release
필드를 HostedControlPlane.spec.release
로 업데이트하고 적절한 Control Plane Operator 버전을 실행합니다.
HostedControlPlane
리소스는 클러스터 버전 운영자(CVO)의 새 버전을 통해 데이터 플레인의 OpenShift Container Platform 구성 요소와 함께 제어 플레인 구성 요소의 새 버전 출시를 조율합니다. HostedControlPlane
에는 다음과 같은 아티팩트가 포함됩니다.
- CVO
- CNO(Cluster Network Operator)
- 클러스터 인그레스 운영자
- Kube API 서버, 스케줄러 및 관리자를 위한 매니페스트
- 기계 승인자
- 자동 확장기
- Kube API 서버, ignition 및 konnectivity와 같은 제어 평면 엔드포인트에 대한 수신을 활성화하는 인프라 리소스
HostedCluster
CR에서 .spec.release
필드를 설정하면 status.version.availableUpdates
및 status.version.conditionalUpdates
필드의 정보를 사용하여 제어 평면을 업데이트할 수 있습니다.
프로세스
다음 명령을 입력하여 호스팅된 클러스터에
hypershift.openshift.io/force-upgrade-to=<openshift_release_image>
주석을 추가합니다.oc annotate hostedcluster \ -n <hosted_cluster_namespace> <hosted_cluster_name> \ "hypershift.openshift.io/force-upgrade-to=<openshift_release_image>" \ --overwrite
$ oc annotate hostedcluster \ -n <hosted_cluster_namespace> <hosted_cluster_name> \
1 "hypershift.openshift.io/force-upgrade-to=<openshift_release_image>" \
2 --overwrite
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 다음 명령을 입력하여 호스팅된 클러스터의
spec.release.image
값을 변경합니다.oc patch hostedcluster <hosted_cluster_name> -n <hosted_cluster_namespace> \ --type=merge \ -p '{"spec":{"release":{"image":"<openshift_release_image>"}}}'
$ oc patch hostedcluster <hosted_cluster_name> -n <hosted_cluster_namespace> \ --type=merge \ -p '{"spec":{"release":{"image":"<openshift_release_image>"}}}'
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
검증
새 버전이 출시되었는지 확인하려면 다음 명령을 실행하여 호스팅된 클러스터에서
.status.conditions
및.status.version
값을 확인하세요.oc get -n <hosted_cluster_namespace> hostedcluster <hosted_cluster_name> \ -o yaml
$ oc get -n <hosted_cluster_namespace> hostedcluster <hosted_cluster_name> \ -o yaml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 출력 예
Copy to Clipboard Copied! Toggle word wrap Toggle overflow