-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
discussion: minikube kubectl
#4684
Comments
I wouldn't say lots of problems, you just have to put the $ minikube kubectl -- --help
kubectl controls the Kubernetes cluster manager See #4333 But maybe we should go for something like I would prefer to install it in e.g. the home directory, but it's not always in $PATH.
I just want the user to avoid having to go through two horrible installation procedures. curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 \
&& chmod +x minikube
sudo install minikube /usr/local/bin
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl See #3645 Hopefully some documentation could "fix" this ? I think that we should handle kubectl like kubelet... |
@afbjorklund Thank you so much for clarifying. That makes a lot of sense, definitely, some documentation would fix it. |
Thanks for the suggestion, in the current form it wouldn't fly very well with our documentation. $ minikube kubectl run hello-minikube --image=k8s.gcr.io/echoserver:1.4 --port=8080
Error: unknown flag: --image
Usage:
minikube kubectl [flags]
Then again, maybe it needs some improvements anyway. $ minikube kubectl -- run hello-minikube --image=k8s.gcr.io/echoserver:1.4 --port=8080
kubectl run --generator=deployment/apps.v1 is DEPRECATED and will be removed in a future version. Use kubectl run --generator=run-pod/v1 or kubectl create instead.
deployment.apps/hello-minikube created
But we should write Or add that |
I was experiencing same issue with
Hope this helps to more users 😉 |
The command
minikube kubectl
has a lot of problems. Any flag that you pass to it won't work becausecorba
will try to parse it, eg:Or if you run
--help
on it, it shows the corba help, not kubectl itself.Would it make sense to deprecate it? Let users use kubectl, as long as we have the
minikube profile
to allow setting the context, or switching the context it should be okay.wdyt? @medyagh @tstromberg @afbjorklund
The text was updated successfully, but these errors were encountered: