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?
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:
Symptoms you might see errors like this: