IBM / container-service-getting-started-wt

Other
95 stars 212 forks source link

Failing to deploy app hello-world (Lab 1) #111

Closed carloshgs closed 4 years ago

carloshgs commented 5 years ago

After running the command: kubectl run hello-world --image=us.icr.io//hello-world it returns the following error: error: failed to discover supported resources: Get http://localhost:8080/apis/apps/v1?timeout=32s: dial tcp [::1]:8080: connectex: No connection could be made because the target machine actively refused it.

jpapejr commented 5 years ago

Export your cluster config first ‘ibmcloud ks cluster config —cluster xxx’

carloshgs commented 5 years ago

Thanks jpapejr for the reply! I did export the config before, but the deploy doesn´t work. The Cluster and the Worker have status normal and ready.

jpapejr commented 5 years ago

It’s clearly not exported if kubectl is trying to talk to localhost:8080.

hintcnuie commented 4 years ago

yes, first cmd: ibmcloud ks clusters

Screen Shot 2020-01-13 at 6 03 31 PM

and copy the clusterID,

the second command, ibmcloud ks cluster config --cluster <clusterID>

Screen Shot 2020-01-13 at 6 06 49 PM

then export the output from previous command.

And another command is available: export IKS_BETA_VERSION=1