10.4. AWS 上のホステッドクラスターで CCO のインストールを検証する
Hosted Control Plane で Cloud Credential Operator (CCO) が正しく実行されていることを確認できます。
前提条件
- Amazon Web Services (AWS) でホステッドクラスターを設定した。
手順
次のコマンドを実行して、ホステッドクラスターで CCO が手動モードで設定されていることを確認します。
oc get cloudcredentials <hosted_cluster_name> \ -n <hosted_cluster_namespace> \ -o=jsonpath={.spec.credentialsMode}$ oc get cloudcredentials <hosted_cluster_name> \ -n <hosted_cluster_namespace> \ -o=jsonpath={.spec.credentialsMode}Copy to Clipboard Copied! Toggle word wrap Toggle overflow 予想される出力
Manual
ManualCopy to Clipboard Copied! Toggle word wrap Toggle overflow 次のコマンドを実行して、
serviceAccountIssuerリソースの値が空でないことを確認します。oc get authentication cluster --kubeconfig <hosted_cluster_name>.kubeconfig \ -o jsonpath --template '{.spec.serviceAccountIssuer }'$ oc get authentication cluster --kubeconfig <hosted_cluster_name>.kubeconfig \ -o jsonpath --template '{.spec.serviceAccountIssuer }'Copy to Clipboard Copied! Toggle word wrap Toggle overflow 出力例
https://aos-hypershift-ci-oidc-29999.s3.us-east-2.amazonaws.com/hypershift-ci-29999
https://aos-hypershift-ci-oidc-29999.s3.us-east-2.amazonaws.com/hypershift-ci-29999Copy to Clipboard Copied! Toggle word wrap Toggle overflow