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
Segfault on musl when running in alpine #1058
Comments
Consider to check "mutually exclusive"
|
Hm, we used to have a static_assertion that we had exactly one of these features selected, but we might have taken that out once we made the client optional.
|
I think this is a duplicate of #869 (comment) . OpenSSL is used by the default client when both are enabled. It's also documented to disable the default features when using rustls.
We removed the requirement to have TLS feature enabled when I haven't tested the current version, but we have an example changing it at runtime that worked at the time. kube/examples/custom_client_tls.rs Lines 1 to 3 in a7861aa
|
Just ran into this -- taking a look at #869 (comment) and switching to a debian base build solved the issue for me. The failure mode I was seeing was that Having both TLS methods turned on at the same time (openssl via default features, rust TLS via explicit feature addition) didn't cause a problem for me (and didn't break locally obviously), but when running a container the application would start up and fail. |
Yeah, alpine is sometimes problematic if you're not doing the musl build correctly. We do use distroless (static) in controller-rs from static exe and in version-rs using muslrust as a builder so people can follow those build setups for minimal images. Debian/official rust build is usually harder to get wrong though. I'm going to close this as a duplicate of #869, but will start writing a bit about container builds on kube-rs/website. |
Current and expected behavior
This code
compiles well, but the binary crashes. See attachet backtrace.txt
Possible solution
No response
Additional context
No response
Environment
Configuration and features
Affected crates
No response
Would you like to work on fixing this bug?
maybe
The text was updated successfully, but these errors were encountered: