Skip to content

add SYS_ADMIN capabilities to DCGM #217

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

add SYS_ADMIN capabilities to DCGM #217

wants to merge 3 commits into from

Conversation

movence
Copy link
Contributor

@movence movence commented Jun 11, 2025

Related change in the operator: aws/amazon-cloudwatch-agent-operator#319

Issue

Open issue: #34
Missing SYS_ADMIN capabilities with DCGM exporter causes a privilege error during the exporter start up

Description of changes:

  • Add SYS_ADMIN capabilities

Test

  • before change
Warning #2: dcgm-exporter doesn't have sufficient privileges to expose profiling metrics. To get profiling metrics with dcgm-exporter, use --cap-add SYS_ADMIN
2025/06/11 19:46:06 maxprocs: Updating GOMAXPROCS=1: using minimum allowed GOMAXPROCS
time="2025-06-11T19:46:06Z" level=info msg="Starting dcgm-exporter"
time="2025-06-11T19:46:06Z" level=info msg="DCGM successfully initialized!"
...
  • after change
2025/06/11 19:47:10 maxprocs: Updating GOMAXPROCS=1: using minimum allowed GOMAXPROCS
time="2025-06-11T19:47:10Z" level=info msg="Starting dcgm-exporter"
time="2025-06-11T19:47:10Z" level=info msg="DCGM successfully initialized!"
...

Confirmed GPU metrics getting emitted on a bottlerocket instance

kc describe node ip-{IP}.us-west-2.compute.internal | grep -i "os image"
  OS Image:                   Bottlerocket OS 1.40.0 (aws-k8s-1.33-nvidia)

Screenshot 2025-06-11 at 3 55 28 PM

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@movence movence marked this pull request as ready for review June 11, 2025 20:00
@@ -1036,7 +1036,7 @@ manager:
name:
image:
repository: cloudwatch-agent-operator
tag: 3.0.1
tag: 3.0.0
Copy link
Contributor

Choose a reason for hiding this comment

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

revert

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oops reverted

sky333999
sky333999 previously approved these changes Jun 11, 2025
@movence movence changed the title support security context with dcgm add SYS_ADMIN capabilities to DCGM Jun 11, 2025
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