Repository navigation
Conversation
The debug dump section tells users to run `ls` through `kubectl exec` and to copy the dumps with `kubectl cp`. The chart's default image is the `-distroless` variant, which has no `ls`, `cat`, or `tar`, so both commands fail: exec: "ls": executable file not found in $PATH exec: "tar": executable file not found in $PATH The image does ship bash, so list the files with a glob and printf, and point users to the hostPath directory on the node for copying. Signed-off-by: YoungjuKim <fjvbn2003@gmail.com>
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem
deployment/README.md("Accessing Debug Files" and "Example Usage") tells users to inspect debug dumps withkubectl exec ... -- ls -la <dir>and to copy them withkubectl cp. The chart's default image isnvcr.io/nvidia/k8s/dcgm-exporter:4.6.1-4.8.4-distroless(deployment/values.yaml), and the distroless image has neitherlsnortar, so both commands fail.I ran the commands against
4.5.3-4.8.2-distroless(the image GPU Operator v26.3.3 deploys) on Kubernetes v1.34.10:On
main, the distroless stage copies onlysh,bash,env,lshw,setcap,ldconfigand the entrypoint from the helper image (hack/licenses/stage-container-runtime.sh), on top ofnvcr.io/nvidia/distroless/cc. So I expect 4.6.1-4.8.4-distroless to behave the same way, but I have not run that tag.Change
ls,catortar, and list the files withbash -c 'shopt -s nullglob; printf "%s\n" <dir>/*'.kubectl cpneedstarin the container, and point users to thehostPathdirectory on the node, which is already described in item 1.Documentation only. No chart templates or values change.
Testing
The listing command and both failures were run on a cluster as shown above. I did not enable
debugDumpon that cluster, so I listed a directory that the image already contains instead of a real dump directory.This change was drafted with AI assistance and reviewed by me.
🤖 Generated with Claude Code