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

make kubelet pod-resources socket directory configurable #199

Merged
merged 2 commits into from
Mar 19, 2024

Conversation

zclyne
Copy link

@zclyne zclyne commented Oct 20, 2023

The PR adds a new command-line parameter, "pod-resources-kubelet-socket," and a new environment variable, "DCGM_POD_RESOURCES_KUBELET_SOCKET." This will help specify a custom socket path when we mount the socket in the docker container.

@zclyne zclyne marked this pull request as draft October 20, 2023 14:22
@zclyne
Copy link
Author

zclyne commented Oct 20, 2023

This PR is associated with issue #192

@nvvfedorov
Copy link
Collaborator

@zclyne , Please add a description with a use case to justify the change.

Yifan Zhang and others added 2 commits March 19, 2024 10:58
Signed-off-by: Yifan Zhang <yzhang2343@bloomberg.net>
Signed-off-by: Vadym Fedorov <vfedorov@nvidia.com>
@nvvfedorov nvvfedorov force-pushed the yifan/kubelet-socket-dir branch from 08ca978 to 05eff12 Compare March 19, 2024 17:51
@nvvfedorov nvvfedorov marked this pull request as ready for review March 19, 2024 21:19
Copy link
Collaborator

@rohit-arora-dev rohit-arora-dev left a comment

Choose a reason for hiding this comment

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

/LGTM

When merging please DO NOT use squash and merge to preserve attributions.

@nvvfedorov nvvfedorov merged commit 049c597 into NVIDIA:main Mar 19, 2024
1 check passed
@zclyne
Copy link
Author

zclyne commented Jun 13, 2024

@zclyne , Please add a description with a use case to justify the change.

Sorry I missed your message for so long. The use case is that we customized our kubelet configuration so that the socket file is not exposed in the default directory /var/lib/kubelet/pod-resources/kubelet.sock. Our temporary fix is to set up a symlink for the socket file in /var/lib/kubelet/pod-resources to point to our customized directory. I'm very glad that this PR is merged. Thank you!

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.

3 participants