File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
content/en/docs/reference/kubectl Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -371,6 +371,8 @@ kubectl port-forward my-pod 5000:6000 # Listen on port 5000 on the
371
371
kubectl exec my-pod -- ls / # Run command in existing pod (1 container case)
372
372
kubectl exec --stdin --tty my-pod -- /bin/sh # Interactive shell access to a running pod (1 container case)
373
373
kubectl exec my-pod -c my-container -- ls / # Run command in existing pod (multi-container case)
374
+ kubectl debug my-pod -it --image=busybox # Create an interactive debugging session witin existing pod and immediately attach to it
375
+ kubectl debug node/my-node -it --image=busybox # Create an interactive debugging session on a node and immediately attach to it
374
376
kubectl top pod # Show metrics for all pods in the default namespace
375
377
kubectl top pod POD_NAME --containers # Show metrics for a given pod and its containers
376
378
kubectl top pod POD_NAME --sort-by=cpu # Show metrics for a given pod and sort it by 'cpu' or 'memory'
You can’t perform that action at this time.
0 commit comments