Repository navigation
feat(ksm): grant DRA RBAC for Cluster Agent 7.85.0+; mount CDI dir for GPU monitoring #3703
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
Merged
gh-worker-dd-mergequeue-cf854d
merged 6 commits into
main
from
minyi/dra-collect-metrics
Nov 2, 2026
Merged
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
9eef841
feat(ksm): grant DRA RBAC for Cluster Agent 7.85.0+; mount CDI dir fo…
zhuminyi 3c22625
docs(ksm): add DRA example DatadogAgent
zhuminyi 51ef13b
docs(ksm): run DRA docs example on the Cluster Agent; clarify DeviceT…
zhuminyi 41b8f3f
docs(ksm): show only the DRA collectors in the DRA example
zhuminyi 1b99adc
test(renderer): regenerate golden manifests for the DRA RBAC
zhuminyi ae6206c
fix(ksm): resolve the bundled version for tagless image overrides in …
zhuminyi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| apiVersion: datadoghq.com/v2alpha1 | ||
| kind: DatadogAgent | ||
| metadata: | ||
| name: datadog | ||
| spec: | ||
| features: | ||
| # Mounts the host CDI spec directory so the Agent can attribute GPUs allocated through DRA to pods. | ||
| gpu: | ||
| enabled: true | ||
| kubeStateMetricsCore: | ||
| enabled: true | ||
| conf: | ||
| # configData replaces the default collector list, so it repeats the full default list | ||
| # and adds the DRA collectors at the end. | ||
| configData: |- | ||
| cluster_check: false | ||
| init_config: | ||
| instances: | ||
| - skip_leader_election: false | ||
| # Optional: only count claims requesting these DeviceClasses. | ||
| # dra_device_classes: | ||
| # - gpu.nvidia.com | ||
| collectors: | ||
| - pods | ||
| - replicationcontrollers | ||
| - statefulsets | ||
| - nodes | ||
| - cronjobs | ||
| - jobs | ||
| - replicasets | ||
| - deployments | ||
| - configmaps | ||
| - services | ||
| - endpoints | ||
| - endpointslices | ||
| - daemonsets | ||
| - horizontalpodautoscalers | ||
| - poddisruptionbudgets | ||
| - limitranges | ||
| - resourcequotas | ||
| - secrets | ||
| - namespaces | ||
| - persistentvolumeclaims | ||
| - persistentvolumes | ||
| - ingresses | ||
| - storageclasses | ||
| - volumeattachments | ||
| # Add verticalpodautoscalers if the VPA CRDs are installed. | ||
| - apiservices | ||
| - controllerrevisions | ||
| - customresourcedefinitions | ||
| # DRA collectors: require Cluster Agent 7.85.0+. | ||
| # resourceclaims and resourceslices need Kubernetes 1.34+; devicetaintrules needs the DeviceTaintRule API | ||
| # (stable in Kubernetes 1.37, earlier behind a feature gate); | ||
| # the Agent skips collectors whose API the cluster does not serve. | ||
| - resourceclaims | ||
| - resourceslices | ||
| - devicetaintrules | ||
| global: | ||
| credentials: | ||
| apiKey: <DATADOG_API_KEY> | ||
| appKey: <DATADOG_APP_KEY> | ||
| clusterName: foo | ||
| override: | ||
| # The operator grants the resource.k8s.io RBAC only for Cluster Agent 7.85.0+. | ||
| clusterAgent: | ||
| image: | ||
| tag: "7.85.0" | ||
| # GPU attribution for DRA pods needs Agent 7.85.0+. | ||
| nodeAgent: | ||
| image: | ||
| tag: "7.85.0" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.