exportCLUSTER_NAME=rosa-test
exportAWS_REGION=us-east-2
exportAWS_INSTANCE_TYPE=g5.4xlarge
exportSUBNET_IDS=<comma separated list of subnet IDs from earlier rosa create network command>
exportOIDC_ID=<the oidc-provider id returned from the rosa create oidc-config command>
exportOPERATOR_ROLES_PREFIX=rosa-test-a6x9
以下のコマンドを使用して、OIDC設定用のオペレーターロールを作成します:
注意: プロンプトが表示されたら、デフォルト値をそのまま使用してください。
rosa create operator-roles --hosted-cp --prefix $OPERATOR_ROLES_PREFIX --oidc-config-id $OIDC_ID
注意: rosa describe cluster -c $CLUSTER_NAMEコマンドを実行し、結果のAPI Server URLを以下のコマンドに代入してから実行してください。例えば、サーバー名はhttps://api.rosa-test.aaa.bb.openshiftapps.com:443のようになります。
oc login <API Server URL> -u cluster-admin
クラスターに接続したら、ノードが起動して実行されていることを確認します:
oc get nodes
NAME STATUS ROLES AGE VERSION
ip-10-0-1-184.us-east-2.compute.internal Ready worker 14m v1.31.11
ip-10-0-1-50.us-east-2.compute.internal Ready worker 20m v1.31.11