-
Notifications
You must be signed in to change notification settings - Fork 524
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
provide settings for creating paths on the host #1208
Comments
Here's the design I have in mind for this. Create
Create
Create
The main constraint is that the parent path is fixed, and the directories can't be nested. This simplifies the implementation since we won't end up with intermediate paths with ambiguous permissions, and we won't need to worry about the paths that come in via settings conflicting with paths that system services use, which may have other restrictions for security reasons. |
This could intersect with #1209 by also allowing host-paths to indicate a storage device:
The above snippet would create the directory and a symlink:
|
We decided not to allow creating host paths on ephemeral storage devices. It introduces a lot of complexity since we have to account for the device being added or removed out of sync with directory creation. It's also inherently ambiguous since we don't control enumeration order for devices, and can't guarantee where the path will be created. |
Bootstrap containers can be used to accomplish this as of Bottlerocket version |
What I'd like:
I'd like the ability to create paths on the host, with specific permissions and an SELinux label. This will help scenarios where a single container needs to be able to write to a directory while many containers need to read from it.
Any alternatives you've considered:
This can be worked around in general with a daemonset pod that mounts host volumes, creates the required directories, sets the permissions, and then sleeps forever. But this is somewhat clunky compared to the alternative on other distros, where that can be handled via
cloud-init
as a one-time step on startup.The text was updated successfully, but these errors were encountered: