kubectl attach
Attach to a process that is already running inside an existing container. More information: https://kubernetes.io/docs/reference/kubectl/generated/kubectl_attach/.
- Get output from a pod:
kubectl attach
- Get output from a container in the specified pod:
kubectl attach
- Get output from the first pod of a replica set:
kubectl attach /
- Create an interactive session with a pod:
kubectl attach
- Create an interactive session with a specific container from a pod:
kubectl attach
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
