This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.13.4. 추가 활성화된 기능을 설정하여 클러스터 기능 활성화
클러스터 관리자는 additionalEnabledCapabilities 를 설정하여 클러스터 기능을 활성화할 수 있습니다.
사전 요구 사항
-
OpenShift CLI(
oc)가 설치되어 있습니다.
절차
다음 명령을 실행하여 추가 활성화된 기능을 확인합니다.
oc get clusterversion version -o jsonpath='{.spec.capabilities.additionalEnabledCapabilities}{"\n"}'$ oc get clusterversion version -o jsonpath='{.spec.capabilities.additionalEnabledCapabilities}{"\n"}'Copy to Clipboard Copied! Toggle word wrap Toggle overflow 출력 예
["openshift-samples"]
["openshift-samples"]Copy to Clipboard Copied! Toggle word wrap Toggle overflow additionalEnabledCapabilities를 설정하려면 다음 명령을 실행합니다.oc patch clusterversion/version --type merge -p '{"spec":{"capabilities":{"additionalEnabledCapabilities":["openshift-samples", "marketplace"]}}}'$ oc patch clusterversion/version --type merge -p '{"spec":{"capabilities":{"additionalEnabledCapabilities":["openshift-samples", "marketplace"]}}}'Copy to Clipboard Copied! Toggle word wrap Toggle overflow
클러스터에서 이미 활성화된 기능을 비활성화할 수 없습니다. CVO(클러스터 버전 Operator)는 클러스터에서 이미 활성화된 기능을 계속 조정합니다.
기능을 비활성화하려고 하면 CVO는 divergent 사양을 표시합니다.
oc get clusterversion version -o jsonpath='{.status.conditions[?(@.type=="ImplicitlyEnabledCapabilities")]}{"\n"}'
$ oc get clusterversion version -o jsonpath='{.status.conditions[?(@.type=="ImplicitlyEnabledCapabilities")]}{"\n"}'
출력 예
{"lastTransitionTime":"2022-07-22T03:14:35Z","message":"The following capabilities could not be disabled: openshift-samples","reason":"CapabilitiesImplicitlyEnabled","status":"True","type":"ImplicitlyEnabledCapabilities"}
{"lastTransitionTime":"2022-07-22T03:14:35Z","message":"The following capabilities could not be disabled: openshift-samples","reason":"CapabilitiesImplicitlyEnabled","status":"True","type":"ImplicitlyEnabledCapabilities"}
클러스터를 업그레이드하는 동안 지정된 기능을 암시적으로 활성화할 수 있습니다. 업그레이드 전에 리소스가 클러스터에서 이미 실행 중인 경우 리소스의 일부인 기능이 활성화됩니다. 예를 들어 클러스터를 업그레이드하는 동안 이미 클러스터에서 실행 중인 리소스가 시스템의 marketplace 기능의 일부로 변경되었습니다. 클러스터 관리자가 Marketplace 기능을 명시적으로 활성화하지 않더라도 시스템에서 암시적으로 활성화합니다.