-
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
Add command for installing kubectl program #4697
Comments
Wonder if instead, we should support a We have tasks to download automatically vm drivers like wdyt? |
Mostly because we install those other components on the VM ? And I don't want to install The drivers are a special case, wonder if we shouldn't just bundle them (like the virtualbox one) ? We should use the same functions underneath, but not sure if we need a Note that there are benefits to not install kubectl too, such as having multiple versions available. We could also do some half-way approach, by printing the path to the |
That's true, it wouldn't make sense to install docker or podman. And an |
Typical usage: $ minikube kubectl --install
💣 Failed to write kubectl: open /usr/local/bin/kubectl: permission denied
$ sudo minikube kubectl --install
$ or alternatively: $ install $(minikube kubectl --path) /usr/local/bin
install: cannot remove '/usr/local/bin/kubectl': Permission denied
$ sudo install $(minikube kubectl --path) /usr/local/bin
$ The main plan for the machine drivers is to provide them as packages and improve documentation. https://github.com/kubernetes/minikube#installation
Then we would also get some modern features like compression or checksums... Imagine that. https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG-1.15.md#client-binaries
|
Request declined |
Currently we either run
kubectl
for the user, or ask them to find the download themselves.Since we already have a versioning and caching mechanism, we could also do it for them ?
So the
minikube kubectl
could grow two new options, one--install
and one--prefix
.Where the prefix would default to
/usr/local
(needs sudo), but you could use e.g.$HOME
Note that for the second usage, the user would need to make sure to include it in $PATH.
Some distributions do it by default, while some use
~/bin
and some use~/.local/bin
...Reference #4684 and #3645
And also https://kubernetes.io/docs/tasks/tools/install-kubectl/ of course, including packages:
The text was updated successfully, but these errors were encountered: