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

enforcing bind-mount to complete before Kubelet #4978

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

djsly
Copy link
Contributor

@djsly djsly commented Sep 19, 2024

What type of PR is this?

What this PR does / why we need it:
Ensure that bind-mount.service exists before Kubelet starts, preventing a race condition affecting double mounting /var/lib/kubelet.

https://www.digitalocean.com/community/tutorials/understanding-systemd-units-and-unit-files

oneshot: This type indicates that the process will be short-lived and that systemd should wait for the process to exit before continuing on with other units. This is the default Type= and ExecStart= are not set. It is used for one-off tasks.

Which issue(s) this PR fixes:

Fixes #

Requirements:

Special notes for your reviewer:

Release note:

none

@cameronmeissner
Copy link
Collaborator

need a make generate

@juan-lee
Copy link
Collaborator

How does making it oneshot ensure that bind-mount.service is there before kubelet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants