From 4fc4eb0c91b17a438e4ef56215b275e242433c59 Mon Sep 17 00:00:00 2001 From: weihan Date: Mon, 11 May 2020 10:12:48 +0800 Subject: [PATCH] better understanding of kubectl attach description --- staging/src/k8s.io/kubectl/pkg/cmd/attach/attach.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/staging/src/k8s.io/kubectl/pkg/cmd/attach/attach.go b/staging/src/k8s.io/kubectl/pkg/cmd/attach/attach.go index dbbd03d89fc..2f646fed778 100644 --- a/staging/src/k8s.io/kubectl/pkg/cmd/attach/attach.go +++ b/staging/src/k8s.io/kubectl/pkg/cmd/attach/attach.go @@ -41,15 +41,15 @@ import ( var ( attachExample = templates.Examples(i18n.T(` - # Get output from running pod 123456-7890, using the first container by default - kubectl attach 123456-7890 + # Get output from running pod mypod, using the first container by default + kubectl attach mypod - # Get output from ruby-container from pod 123456-7890 - kubectl attach 123456-7890 -c ruby-container + # Get output from ruby-container from pod mypod + kubectl attach mypod -c ruby-container - # Switch to raw terminal mode, sends stdin to 'bash' in ruby-container from pod 123456-7890 + # Switch to raw terminal mode, sends stdin to 'bash' in ruby-container from pod mypod # and sends stdout/stderr from 'bash' back to the client - kubectl attach 123456-7890 -c ruby-container -i -t + kubectl attach mypod -c ruby-container -i -t # Get output from the first pod of a ReplicaSet named nginx kubectl attach rs/nginx