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

kube-prompt does not work with minikube #80

Open
frankgerhardt opened this issue Dec 10, 2020 · 1 comment
Open

kube-prompt does not work with minikube #80

frankgerhardt opened this issue Dec 10, 2020 · 1 comment

Comments

@frankgerhardt
Copy link

I don't have kubectl installed but use alias kubectl='minikube kubectl --' instead as described in https://minikube.sigs.k8s.io/docs/handbook/kubectl/.

Then I get this error:

$ kube-prompt 
kube-prompt v1.0.10 (rev-43bcffa)
Please use `exit` or `Ctrl-D` to exit this program.
>>> help
/bin/sh: 1: kubectl: not found
Got error: exit status 127
>>> 
@bbugh
Copy link

bbugh commented Nov 28, 2021

@frankgerhardt not sure if this still matters for you, but if anyone else ends up here you can resolve this by making a bash script that just passes all args through to minikube.

  1. Create file kubectl
#!/bin/bash

minikube kubectl -- "$@"
  1. chmod +x ./kubectl
  2. sudo mv ./kubectl /usr/local/bin/kubectl

Now any programs that need kubectl will actually work (including running as root).

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

2 participants