NorhanKhaled / SkillsAcademy-CAD

12 stars 4 forks source link

Exercise 5, Part 2: Downloading configuration files to access Kubernetes #87

Closed HudsonLubinga closed 4 years ago

HudsonLubinga commented 4 years ago

When is use this command: ibmcloud ks cluster-config mycluster, I get and error, even if I remove the hythen(-), it fails. and the previous command: ibmcloud ks cluster config --cluster mycluster does not output the KUBECONFIG variable. Please help me. Thanks image1

KTRDeveloper commented 4 years ago

The right command is ibmcloud ks cluster config --cluster <cluster_name_or_ID> . As shown by your screenshot, this command executed successfully. You can check that the files was really downloaded by navigating to C:\Users\user_name>\.bluemix\plugins\container-service\clusters\mycluster\kube-config-mel01-mycluster.yml . So all what you need is to set the environment variable with SET KUBECONFIG=C:\Users\<user_name>\.bluemix\plugins\container-service\clusters\mycluster\kube-config-mel01-mycluster.yml and continue the exercise.

HudsonLubinga commented 4 years ago

Thanks so much