Skip to content

Commit 70ff13f

Browse files
authored
Merge pull request #45959 from dudo/patch-1
Add debug references
2 parents 6be32f0 + aff7105 commit 70ff13f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

content/en/docs/reference/kubectl/quick-reference.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,8 @@ kubectl port-forward my-pod 5000:6000 # Listen on port 5000 on the
373373
kubectl exec my-pod -- ls / # Run command in existing pod (1 container case)
374374
kubectl exec --stdin --tty my-pod -- /bin/sh # Interactive shell access to a running pod (1 container case)
375375
kubectl exec my-pod -c my-container -- ls / # Run command in existing pod (multi-container case)
376+
kubectl debug my-pod -it --image=busybox:1.28 # Create an interactive debugging session witin existing pod and immediately attach to it
377+
kubectl debug node/my-node -it --image=busybox:1.28 # Create an interactive debugging session on a node and immediately attach to it
376378
kubectl top pod # Show metrics for all pods in the default namespace
377379
kubectl top pod POD_NAME --containers # Show metrics for a given pod and its containers
378380
kubectl top pod POD_NAME --sort-by=cpu # Show metrics for a given pod and sort it by 'cpu' or 'memory'

0 commit comments

Comments
 (0)