NorhanKhaled / SkillsAcademy-CAD

12 stars 4 forks source link

Cloud-Ex06-Detailed issues with screenshot #83

Open morexwell opened 4 years ago

morexwell commented 4 years ago

I have search all over the internet, I could not find solution for this.. I am uncertain if its update issues or bug issues because most people on windows machine seems to be facing the same.

Command terminal on windows machine.. 1.At this point below you see the message.. ”cluster-config is not a registered command” see screenshot cluster-config is not a registered command

2.There was no notification on the terminal to either “Set the KUBECONFIG environment variable“ Or “export environment variables to start using kubernetes”

3.I Verified that the kubectl commands run properly with cluster by checking the Kubernetes CLI server version: with this command: kubectl version --short kubectl version

  1. i proceeded to running “ibmcloud dev create ” command. At the end of the process, the below is printed out.

saved successfully to current directory

hello-student saved successfully locally

  1. When I run “ kubectl apply -f 01hello-student-deployment.yaml “

'kubectl' is not recognized as an internal or external command, operable program or batch file.

See below:

kubectl is not recognized as an internal or external command

Any assistance or help why this error is command is displaying will be appreciated.

Thank you

NorhanKhaled commented 4 years ago
  1. the command should be ibmcloud ks cluster config --cluster
  2. when you run the command in point 1 correctly it will appear , you will need to copy it and paste
  3. I think you missed a step in configuring kubectl on your machine , in the Wellington Ogbemudia location can you see a file called kubectl.exe ??
NorhanKhaled commented 4 years ago

I think you didn't apply this note , if you find it on Wellington Ogbemudia path only image

morexwell commented 4 years ago

I think you didn't apply this note , if you find it on Wellington Ogbemudia path only image

how i do add to path? please give an example.. thank you

NorhanKhaled commented 4 years ago

are you using windows ? 7 or 10 ?? and I will give you detailed steps

morexwell commented 4 years ago

are you using windows ? 7 or 10 ?? and I will give you detailed steps

window 7 .... thank you

morexwell commented 4 years ago
  1. the command should be ibmcloud ks cluster config --cluster
  2. when you run the command in point 1 correctly it will appear , you will need to copy it and paste
  3. I think you missed a step in configuring kubectl on your machine , in the Wellington Ogbemudia location can you see a file called kubectl.exe ??

yes. there is kubectl.exe in that location as : C:\Users\Wellington Ogbemudia\kubectl.exe

NorhanKhaled commented 4 years ago

use those steps here https://support.shotgunsoftware.com/hc/en-us/articles/114094235653-Setting-global-environment-variables-on-Windows and add new environment variable kubectl and the path is C:\Users\Wellington Ogbemudia\