-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Support installing kubectl #1502
Comments
I tend to use https://github.com/GoogleCloudPlatform/kubectl-dispatcher installed via I'm not sure how we should best match this into kind though, especially since kind is meant to support completely arbitrary k8s commits. @seans3 is it feasible to drop binaries for specific commits in some directory and have the dispatcher match as closely as possible? the node images do have kubectl, on linux you can just copy it out to the host with a one-liner, but mac / windows are problematic. |
The Some background: the
@BenTheElder to answer your question about dropping binaries into a location: it would have to look like this previous organization. It requires a special |
@BenTheElder Please let me know how I can help. I can probably put a |
thanks, I think we might need to consider also placing it somewhere like github, kind is generally workable in china and has an active userbase there but we've found with our nightly builds that GCS cannot be reached behind GFW. how would the dispatcher to tiebreak also not sure how we avoid infinite versions. maybe we focus on installing release versions and just assume that the api is not supposed to break in 1.X. across all ... |
I'm not sure when we'll get to this with some other big changes still settling but I really like this idea, this has been a fairly major pain point for me as well. I'm going to sync with seans3 soon to discuss what it might look like to support installing the dispatcher (and installing more kubectl binaries) because I think that's the least friction way to go, you wouldn't need to switch between versions manually, just make sure they're installed and then it just matches the server :-) |
Similar tools for Helm |
We have this in https://github.com/kubernetes/minikube/blob/master/cmd/minikube/cmd/kubectl.go Basically we download the correct version to the cache and run it from there. Here's another nice approach: https://apps.0install.net/kubernetes/kubectl.xml |
kind has the
a quick hack
|
Usually, I will directly copy kubectl to the local after using KIND to start the cluster
|
That only works on Linux @aojea @tao12345666333. We can pretty easily do something like minikube kubectl, however I think the dispatcher is preferable so as to correctly handle multiple contexts & versions without reinventing the wheel. The biggest trick to consider is that we support unreleased kubernetes versions / arbitrary commits. We'll also need to improve the dispatcher hosting, and determine where to install this on the host. |
Can we wrap with kind the inner kubectl? |
Not cleanly due to -f ...
…On Sat, Jun 6, 2020, 06:22 Antonio Ojea ***@***.***> wrote:
That only works on Linux @aojea <https://github.com/aojea> @tao12345666333
<https://github.com/tao12345666333>.
We can pretty easily do something like minikube kubectl, however I think
the dispatcher is preferable so as to correctly handle multiple contexts &
versions without reinventing the wheel.
The biggest trick to consider is that we support unreleased kubernetes
versions / arbitrary commits. We'll also need to improve the dispatcher
hosting, and determine where to install this on the host.
Can we wrap with kind the inner kubectl?
kind kubectl --name kind-cluster ...
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#1502 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHADKZWJYID6XFSV2A7ZGTRVI7H7ANCNFSM4MONV5SQ>
.
|
/remove-kind design |
Hi, this label was only supposed to be migrated for kubernetes/kubernetes. Please see: https://groups.google.com/g/kubernetes-dev/c/f6W68eS8xo0 |
Eh, whatever 🤷♂️ |
What would you like to be added:
It will be useful if kind could also kubectl, kustomize etc.
Why is this needed:
kubectl, etc. needs to match the version of k8s. Right now, it is a clumsy manual process and kind of pain to add in a CI env.
Something like https://github.com/nutellinoit/kubenvz could be built into kind, it will be even more awesome.
The text was updated successfully, but these errors were encountered: