Login to IKS
The access tab of your Kubernetes Service
cluster explains the steps to login to your cluster with kubectl
.
Login to IKS from your localhost with the ibmcloud CLI to set the kubectl context,
$ ibmcloud login -a cloud.ibm.com -r us-south -g Default
$ ibmcloud target --cf
$ ibmcloud ks cluster config --cluster abcdefgh1ijklmn2o345
...
OK
The configuration for abcdefgh1ijklmn2o345 was downloaded successfully.
Export environment variables to start using Kubernetes.
export KUBECONFIG=/Users/user1/.bluemix/plugins/container-service/
clusters/abcdefgh1ijklmn2o345/kube-config-<region>-<username>-standard-iks-cluster.yml
$ export KUBECONFIG=/Users/user1/.bluemix/plugins/container-service/
clusters/abcdefgh1ijklmn2o345/kube-config-<region>-<username>-standard-iks-cluster.yml
You are now connected to the remote Kubernetes cluster.
Last updated
Was this helpful?