-
Notifications
You must be signed in to change notification settings - Fork 115
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
Dockerize krane #814
Comments
I'm open to this assuming we've got the infrastructure to make this happen easily. By and chance do you have an example |
Maybe you're thinking of the pipeline? If that's the case, as you're using Github, GH Actions would do it otherwise there are plainly of free options out there.
Not yet but it shouldn't be that hard since |
If you're talking about being able to execute krane via We're using this as general "deploy"container for docker-compose + kubernetes, it definitely could be slimmed down if only krane is wanted. But it might help to get you started.;) |
After thinking about this more, I'm hesitant to actually build a container. kubectl is only supporting one version a head a one behind (https://kubernetes.io/docs/setup/release/version-skew-policy/#kubectl) which makes me think we'll never include a version that makes enough people happy. I'm still happy to add an example Dockerfile to the documentation though. |
Sorry @dturn I don't understand what's the issue here. |
@dturn is right. The kubectl-version is (more or less) bound to the cluster-version. So having kubectl-v1.18 in the docker-image you could only support clusters with v1.18+v1.19. Same goes the other way around for deprecations. Workaround could be mounting kubectl from the host, or downloading it in an init-script (this can/will get you probably rate-limited at least). |
Another option would be building plain old krane binaries using something like https://github.com/pmq20/ruby-packer or https://github.com/phusion/traveling-ruby . If it needs to collaborate with other elements from the system like |
I agree with @airhorns, krane should be available as a binary. |
In order to make it even more easy to use (not wasting time and system with Ruby and gems to be installed), it would be great to have this tool in a Docker container.
The text was updated successfully, but these errors were encountered: