Skip to content
Discussion options

You must be logged in to vote

ok so this wasn't the whole picture but it pointed me in the right direction, here's how one could do it using kubectl debug

➜  ~ kubectl run "node-debugger-${USER}" --restart=Never --namespace kube-system --image nvcr.io/nvidia/cuda:12.8.0-base-ubuntu22.04 --overrides '{"spec": {"runtimeClassName": "nvidia", "nodeSelector": {"kubernetes.io/hostname": "<node_name>"}}}' -- bash -c 'sleep 99999' && \
  kubectl debug "node-debugger-${USER}" -it --namespace kube-system --profile sysadmin --image nvcr.io/nvidia/cuda:12.8.0-base-ubuntu22.04 --target "node-debugger-${USER}"; \
  kubectl delete pod "node-debugger-${USER}" --namespace kube-system --force
pod/node-debugger-<user> created
Targeting …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tan-wei-xin-alez
Comment options

Answer selected by tan-wei-xin-alez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants