Skip to content

Commit bb8a5d2

Browse files
authored
Merge pull request kubernetes#90959 from ica10888/master
Better understanding of kubectl attach description
2 parents 2234e2b + 4fc4eb0 commit bb8a5d2

File tree

1 file changed

+6
-6
lines changed
  • staging/src/k8s.io/kubectl/pkg/cmd/attach

1 file changed

+6
-6
lines changed

staging/src/k8s.io/kubectl/pkg/cmd/attach/attach.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ import (
4141

4242
var (
4343
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
4646
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
4949
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
5151
# 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
5353
5454
# Get output from the first pod of a ReplicaSet named nginx
5555
kubectl attach rs/nginx

0 commit comments

Comments
 (0)