Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mpdev doctor command says kubectl is not installed when it is #604

Open
shaun-nx opened this issue Feb 7, 2023 · 2 comments
Open

mpdev doctor command says kubectl is not installed when it is #604

shaun-nx opened this issue Feb 7, 2023 · 2 comments

Comments

@shaun-nx
Copy link

shaun-nx commented Feb 7, 2023

Steps to reproduce:

  1. Install kubectl to GKE cluster using gcloud components instal kubectl
  2. Run mpdev doctor command

Expected outcome:
mpdev will either say everything is okay, or some me some other error.

Actual outcome:

kubectl is not installed.

See https://kubernetes.io/docs/tasks/tools/install-kubectl/#download-as-part-of-the-google-cloud-sdk
====

To add some extra context, when I run the mpdev install command to test my deployment I'm getting this error as well

Command:

~/bin/mpdev install --deployer=$IMAGE --parameters='{"name": "test-deployment", "namespace": "test-ns"}'

Output:

Unable to connect to the server: getting credentials: exec: fork/exec ~/homebrew/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/bin/gke-gcloud-auth-plugin: no such file or directory

I can confirm that directory/file is there, so I'm a bit stuck as to why it's say "no such file or directory"

@roberth1988
Copy link

roberth1988 commented Aug 30, 2023

@shaun-nx just remove from your kube config the path ~/homebrew/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/bin/ then everything will work.

Background is here that gcloud on your Mac created actually the full path to it.

@steven-resonance
Copy link

I am having the same problem when trying to install mpdev then run mpdev doctor. Running mpdev is successful, but mpdev doctor fails with kubectl is not installed. (I've tried on multiple computers, same result)

I am also not able to run mpdev verify, getting different errors, but I am guessing the two are related. Are there any steps I can take to resolve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants