Connecting to OpenShift by using the CLI

Procedure

  1. Retrieve the address of the API server:
    apiServer=$(az aro show -g $RESOURCEGROUP -n $CLUSTER --query apiserverProfile.url -o tsv)
  2. To log in to the OpenShift cluster's API server, run the following command:
    oc login $apiServer -u kubeadmin -p <kubeadmin_password>
    Tip: The <kubeadmin_password> value is the password for kubeadmin, as determined in this topic.
  3. Verify that the ARO cluster is deployed properly:
    1. Run the following command:
      oc get nodes

      If the cluster is deployed properly, the Status column displays Ready for all rows.

    2. Run the following command:
      oc get co

      If the cluster is deployed properly, the Available column displays True for all rows.