Skip to content

Latest commit

 

History

History
53 lines (34 loc) · 1.75 KB

configure-kube.md

File metadata and controls

53 lines (34 loc) · 1.75 KB

Configure kubeconfig

Option 1: Configure Kubeconfig with your Cloud Provider CLI

Azure Kubernetes Service
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

Amazon Elastic Kubernetes
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

GKE CLI
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

RedHat OpenShift platform

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

Option 2: Configure Kubeconfig manually

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