-
Notifications
You must be signed in to change notification settings - Fork 71
Update s6-overlay to 3.2.2.0 for Kubernetes non-root support #342
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
base: master
Are you sure you want to change the base?
Update s6-overlay to 3.2.2.0 for Kubernetes non-root support #342
Conversation
s6-overlay v3.2.0 adds tolerance for unprivileged containers with world-writable /run, enabling containers to run as non-root in Kubernetes/OpenShift environments. This adds support for the S6_YES_I_WANT_A_WORLD_WRITABLE_RUN_BECAUSE_KUBERNETES environment variable which allows s6-overlay to boot when /run is owned by uid 0 but the container runs as a different user. Fixes running Home Assistant on OpenShift where containers are assigned random UIDs and cannot chown /run. Ref: just-containers/s6-overlay#427
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @morey-tech
It seems you haven't yet signed a CLA. Please do so here.
Once you do that we will be able to review and accept this pull request.
Thanks!
|
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
|
Probably the biggest change with jumping to the S6 overlay v3.2.x.x train is that the services no longer timeout, from the release notes:
From the pre-v3.2.x.x README.md it seems that before the default timeout was 5000. I don't think that we typically need a timeout, the default change seems sensible to me. But something to keep in mind, and if required, we still can use It seems that meanwhile another minor release got released. @morey-tech can you update the PR accordingly? |
Summary
Update s6-overlay from 3.1.6.2 to 3.2.2.0 to enable running Home Assistant containers as non-root in Kubernetes/OpenShift environments.
Problem
Home Assistant containers fail to start on OpenShift (and other Kubernetes distributions that enforce non-root) with:
OpenShift runs containers with random UIDs (e.g.,
uid=1000780000) that cannot chown directories.Solution
s6-overlay v3.2.1.0 added:
This release introduces
S6_YES_I_WANT_A_WORLD_WRITABLE_RUN_BECAUSE_KUBERNETESenvironment variable support that allows s6-overlay to boot with world-writable/runowned by uid 0.References