-
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
Minikube v1.30.0+ (with Go 1.20) do not run on Alpine Linux #16228
Comments
If you want to run on Alpine, I think you need to install the glibc compatibility package. https://wiki.alpinelinux.org/wiki/Running_glibc_programs Or better yet, use a version of minikube that has been built for it (and the musl library) ? https://pkgs.alpinelinux.org/package/edge/testing/x86_64/minikube |
You can also resort to some hack like (with
It (alpine) is not unsupported, but it is also not explicitly supported... EDIT: need to use libgcompat.so explicitly |
I have the
There is no package there for v1.30.0, I expect because it takes its binaries from this repo's Release Assets, and this repo's release asset for v1.30.0 doesn't run on Alpine. v1.30.1 also doesn't run on Alpine. I am asking the maintainers of the build process to either fix their build so it works on Alpine (as did all the prior versions) or declare they are not going to support Alpine going forward, so we can have a clear answer to the question of are they going to continue to support Alpine. |
It is built from source, so I think you need to request a new version in Alpine using the normal (Alpine) channels ? https://git.alpinelinux.org/aports/tree/testing/minikube/APKBUILD You can also install the https://minikube.sigs.k8s.io/docs/contrib/building/binaries/
Once the glibc compatibility (in Alpine) is fixed to also include libresolv.so, then the glibc binaries will work again. I don't think minikube will build or provide any binaries using musl for download, so they will continue to use glibc. But if you want a "native" package, then It is in testing repo, while you can find |
This is the repository: https://git.adelielinux.org/adelie/gcompat As per above, it needs at least It adds But not |
@afbjorklund I appreciate your effort at trying to solve the problem "how do I get minikube v1.30 to work on Apline?" However, that is not the problem I am interested in solving or the question I want answered. Up until v1.30, I could install minikube on Alpine with $ apk add libc6-compat
$ VERSION=1.29.0 # for example
$ curl -o /usr/local/bin/minikube -sSL https://github.com/kubernetes/minikube/releases/download/v${VERSION}/minikube-linux-amd64
$ chmod a+x /usr/local/bin/minikube Starting with version v1.30.0 this no longer works. It also does not work if I substitute At the moment, the only Alpine package I can find for |
It would be possible to also build musl binaries of minikube, but right now there are no release jobs to do it. But I don't think the Go maintainers will revert the change of not providing resolv, that was introduced in 1.20... Thanks for mentioning libc6-compat, that is the package where the libresolv.so.2 should be added to make it work. The v1.29.0 binary was not native to Alpine either, but then there was enough default compat support to make it run. |
There should be some documentation provided, about the minimum OS requirements of the binaries provided. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close not-planned |
@k8s-triage-robot: Closing this issue, marking it as "Not Planned". In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What Happened?
Minikube v1.29.0 ran under Alpine Linux, but v1.30.0 and v1.30.1 do not. Please either fix the build so that it works under Alpine or state your intention to not support Alpine. See golang/go#59305 (comment) for more information.
References
Attach the log file
No log generated
Operating System
Other
Driver
None
The text was updated successfully, but these errors were encountered: