Target your environment
In this step, you'll configure kubectl to point to your cluster going forward. kubectl is a command line tool that you use to interact with a Kubernetes cluster.
- Target the resource group you have been assigned to:
ibmcloud target -g think-iks --cf
- Retrieve the cluster configuration. Replace
<CLUSTER_NAME>
with the cluster assigned to you:WindowsBashibmcloud ks cluster-config <CLUSTER_NAME>
ibmcloud ks cluster-config <CLUSTER_NAME>
- Copy and paste the displayed set command to set the KUBECONFIG environment variable as directed. To verify whether the KUBECONFIG environment variable is set properly or not, run the following command:
echo %KUBECONFIG%
Check that the
kubectl
command is correctly configuredkubectl cluster-info