GoogleCloudPlatform / marketplace-k8s-app-tools

Apache License 2.0
75 stars 76 forks source link

KUBECONFIG should be used instead of KUBE_CONFIG #606

Open samos123 opened 1 year ago

samos123 commented 1 year ago

https://github.com/GoogleCloudPlatform/marketplace-k8s-app-tools/blob/master/scripts/dev#L7

https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#the-kubeconfig-environment-variable

I was scratching my head why it wasn't picking up my KUBECONFIG environment setting. Turns out the marketplace is using a non standard environment variable.

Workaround: Run the following before running mpdev:

export KUBE_CONFIG=$KUBECONFIG

Symptoms you might see errors like this:

The connection to the server localhost:8080 was refused - did you specify the right host or port?