- Web console } Administrator } Workloads } Pods }
$PODNAME
} Terminal
- Ensure you're logged in with
oc
- Find the relevant pod(s):
$ oc get pods --namespace $NAMESPACE
NAME READY STATUS RESTARTS AGE
mypod-7d57d6599f-tq7vt 1/1 Running 0 12m
- Remote into the pod (if it has more than one container, specify the
container with
-c $CONTAINER
):
$ oc rsh --namespace $NAMESPACE -t $PODNAME
sh-4.4$
Previous Section (OpenShift Use Image Registry Recipe) |
Next Section (OpenShift Analyze a Pod Recipe) |
Back to Table of Contents