File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
staging/src/k8s.io/kubectl/pkg/cmd/attach Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -41,15 +41,15 @@ import (
41
41
42
42
var (
43
43
attachExample = templates .Examples (i18n .T (`
44
- # Get output from running pod 123456-7890 , using the first container by default
45
- kubectl attach 123456-7890
44
+ # Get output from running pod mypod , using the first container by default
45
+ kubectl attach mypod
46
46
47
- # Get output from ruby-container from pod 123456-7890
48
- kubectl attach 123456-7890 -c ruby-container
47
+ # Get output from ruby-container from pod mypod
48
+ kubectl attach mypod -c ruby-container
49
49
50
- # Switch to raw terminal mode, sends stdin to 'bash' in ruby-container from pod 123456-7890
50
+ # Switch to raw terminal mode, sends stdin to 'bash' in ruby-container from pod mypod
51
51
# and sends stdout/stderr from 'bash' back to the client
52
- kubectl attach 123456-7890 -c ruby-container -i -t
52
+ kubectl attach mypod -c ruby-container -i -t
53
53
54
54
# Get output from the first pod of a ReplicaSet named nginx
55
55
kubectl attach rs/nginx
You can’t perform that action at this time.
0 commit comments