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

fix: kubelet --root-dir can be used #111

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

Conversation

niuli33
Copy link

@niuli33 niuli33 commented Jun 18, 2024

to resolve issue #96

@@ -6,6 +6,7 @@ metadata:
data:
config.json: |
{
"kubeletRootDir": "/var/lib/kubelet",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets have this one as a cli flag i dont think users should be concerned about it. (--kubelet-root-dir)

thats a deployment decision.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

normally, i also dont think users should be concerned about it, its default value is /var/lib/kubelet,
if necessary, users can set kubeletRootDir=xxx

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cli and configmap are two different configurations. If necessary, It can be changed to cli mode.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It can be changed to cli mode.

that is my preference.

@@ -21,6 +21,8 @@ spec:
securityContext:
privileged: true
volumeMounts:
# 如果configmap.yaml中指定了kubeletRootDir,则需要调整为相同的路径
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it, thanks

@@ -21,6 +21,8 @@ spec:
securityContext:
privileged: true
volumeMounts:
# 如果configmap.yaml中指定了kubeletRootDir,则需要调整为相同的路径
# 如:kubeletRootDir=/data/kubelet,则mountPath=/data/kubelet/device-plugins
- name: device-plugin
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a note.

if kubelet root dir is different the two mounts below need to be updated in deployment. (thiis yaml is just example)

you dont want to mount entire */kubelet dir since it may cause issues as kubelet maintains other mounts under this root dir.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also remove this comment :)

Signed-off-by: niuli33 <[email protected]>

delete comments
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.

2 participants