Connecting to OpenShift by using the CLI
Procedure
- Retrieve the address of the API server:
apiServer=$(az aro show -g $RESOURCEGROUP -n $CLUSTER --query apiserverProfile.url -o tsv)
- To log in to the OpenShift cluster's API
server, run the following command:
oc login $apiServer -u kubeadmin -p <kubeadmin_password>
- Verify that the ARO cluster is deployed properly:
- Run the following command:
oc get nodes
If the cluster is deployed properly, the
Status
column displaysReady
for all rows. - Run the following command:
oc get co
If the cluster is deployed properly, the
Available
column displaysTrue
for all rows.
- Run the following command: