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

Add PodResources mount #1696

Merged
merged 5 commits into from
Feb 19, 2025
Merged

Conversation

gjulianm
Copy link
Contributor

@gjulianm gjulianm commented Feb 10, 2025

What this PR does / why we need it:

Adds a mount to expose the PodResources kubelet API in the agent container. This will allow us to retrieve allocated resources for running pods, which is necessary for GPU monitoring (#1681).

Which issue this PR fixes

(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

  • fixes #

Special notes for your reviewer:

Checklist

[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

  • Chart Version bumped
  • Documentation has been updated with helm-docs (run: .github/helm-docs.sh)
  • CHANGELOG.md has been updated
  • Variables are documented in the README.md
  • For Datadog Operator chart or value changes update the test baselines (run: make update-test-baselines)

@gjulianm gjulianm self-assigned this Feb 10, 2025
@github-actions github-actions bot added the chart/datadog This issue or pull request is related to the datadog chart label Feb 10, 2025
@gjulianm gjulianm force-pushed the guillermo.julian/pod-resources-socket branch from ed36907 to 32a9f70 Compare February 10, 2025 11:37
@gjulianm gjulianm force-pushed the guillermo.julian/pod-resources-socket branch from 32a9f70 to 45c5f7d Compare February 10, 2025 11:51
@gjulianm gjulianm marked this pull request as ready for review February 10, 2025 12:42
@gjulianm gjulianm requested a review from a team as a code owner February 10, 2025 12:42
@@ -207,6 +207,8 @@
- name: DD_OTELCOLLECTOR_ENABLED
value: "true"
{{- end }}
- name: DD_KUBERNETES_KUBELET_PODRESOURCES_SOCKET
value: {{ printf "%s/kubelet.sock" .Values.datadog.kubelet.podResourcesSocket | quote }}
Copy link
Contributor

Choose a reason for hiding this comment

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

overall looks good, just wondering if there's ever a chance the socket will not be called kubelet.sock ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

From what I've seen, it seems to be hardcoded in the k8s code.

@gjulianm
Copy link
Contributor Author

/merge

@dd-devflow
Copy link

dd-devflow bot commented Feb 19, 2025

View all feedbacks in Devflow UI.
2025-02-19 17:09:45 UTC ℹ️ Start processing command /merge


2025-02-19 17:09:50 UTC ℹ️ MergeQueue: pull request added to the queue

The median merge time in main is 41m.


2025-02-19 17:46:40 UTC ℹ️ MergeQueue: This merge request was merged

@dd-mergequeue dd-mergequeue bot merged commit 146a161 into main Feb 19, 2025
27 checks passed
@dd-mergequeue dd-mergequeue bot deleted the guillermo.julian/pod-resources-socket branch February 19, 2025 17:46
celenechang added a commit that referenced this pull request Feb 19, 2025
celenechang added a commit that referenced this pull request Feb 19, 2025
* Revert "Merge #1696: Add PodResources mount"

This reverts commit 146a161.

* bump chart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chart/datadog This issue or pull request is related to the datadog chart mergequeue-status: done
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants