Oc rsh: Difference between revisions
Jump to navigation
Jump to search
Line 9: | Line 9: | ||
=Overview= | =Overview= | ||
Open a remote shell session to a container running in a pod | Open a remote shell session to a container running in a pod. If more than one containers run in the pod, the default will be used. | ||
oc rsh -n <''namespace''> <''pod-name''> | oc rsh -n <''namespace''> <''pod-name''> | ||
To connect to a specific container (and not the default): | |||
oc rsh -n <''namespace''> <''pod-name''> -c <''container-name''> |
Revision as of 19:42, 12 October 2017
External
Internal
Overview
Open a remote shell session to a container running in a pod. If more than one containers run in the pod, the default will be used.
oc rsh -n <namespace> <pod-name>
To connect to a specific container (and not the default):
oc rsh -n <namespace> <pod-name> -c <container-name>