export AZSUBSCRIPTION=xxxxxxx
export RESOURCE_GROUP="xxxxxxxx"
export AKS_CLUSTER_NAME="xxxxxx"
az account set --subscription $AZSUBSCRIPTION
az aks get-credentials --resource-group $RESOURCE_GROUP --name $AKS_CLUSTER_NAME
Find more information on Azure Docs
export AWS_REGION=xxxxxxx
export EKS_CLUSTER_NAME="xxxxxx"
aws update Cluster aws eks --region $AWS_REGION update-kubeconfig --name $EKS_CLUSTER_NAME
Find more information on AWS Docs
export GCP_ZONE=xxxxxxx
export GCP_PROJECT_NAME=xxxxxxx
export GKE_CLUSTER_NAME="xxxxxx"
gcloud container clusters get-credentials $GKE_CLUSTER_NAME --zone $GCP_ZONE --project $GCP_PROJECT_NAME
Find more information on Google Cloud Platform Docs
Log in to the CLI using the oc login command and enter the required information when prompted.
oc login
Find more information on Red Hat OpenShift Docs
If you installed Kubernetes on bare Metal, via kubeadm, or with any other distribution (e.g., Rancher...), you can follow Kubernetes documentation via kubernetes.io