Skip to content
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

Influence bind persistent mounts PROPAGATION #2042

Open
anmazzotti opened this issue Apr 10, 2024 · 0 comments
Open

Influence bind persistent mounts PROPAGATION #2042

anmazzotti opened this issue Apr 10, 2024 · 0 comments
Labels
kind/enhancement New feature or request
Milestone

Comments

@anmazzotti
Copy link
Contributor

Is your feature request related to a problem? Please describe.

In a kubeadm-elemental system, /var/lib/kubelet needs to be persistent.
When this path is defined in the PERSISTENT_STATE_PATHS list, and PERSISTENT_STATE_BIND: "true" is also defined, then a private bind mount is created.

However kubelet will also create a shared one, and complain about the private:

Error:

Error: failed to generate container "1ad6983bbfbb37f08ddfd56a7ca3f0e72c61bf277b21cc05dd1e1c657eb55536" spec: failed to generate spec: path "/var/lib/kubelet" is mounted on "/var/lib/kubelet" but it is not a shared mount

State:

findmnt -o TARGET,PROPAGATION /var/lib/kubelet/
TARGET           PROPAGATION
/var/lib/kubelet private
/var/lib/kubelet shared

Describe the solution you'd like
I'd like to influence the propagation, maybe something like:

PERSISTENT_STATE_BIND: "shared"

Describe alternatives you've considered
As a workaround, /var/lib can be defined as persistent instead. This however is sub-optimal has it has a wide scope.

Another option is to remove PERSISTENT_STATE_BIND and use overlay mounts, however this does not work as well out of the box with containerd, which is also a dependency in this setup.

@kkaempf kkaempf added the kind/enhancement New feature or request label Apr 10, 2024
@kkaempf kkaempf added this to the Micro6.1 milestone Apr 10, 2024
@kkaempf kkaempf modified the milestones: Micro6.1, Micro6.2 Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request
Projects
Status: 💡 Backlog
Development

No branches or pull requests

2 participants