openshift - How to ssh a openshift3 pod if replicas are more than one? -


if have multiple replicas of web service, how can ssh , investigate single pod?

so have list pods , oc rsh pod name want :

$ oc project my-project using project "my-project" on server "https://origin.my-company.com:8443". $ oc po  my-pod-72-3eojp         1/1       running     0          8d my-pod-72-5bx0x         1/1       running     0          8d my-pod-72-8fgce         1/1       running     0          8d my-pod-72-c1twn         1/1       running     6          8d my-pod-72-kfcev         1/1       running     1          8d my-pod-72-lc39y         1/1       running     10         8d my-pod-72-s9664         1/1       running     11         8d my-pod-72-yt05k         1/1       running     10         8d #pick 1 , rsh it: $ oc rsh my-pod-72-s9664 sh-4.2$ 

now have shell opened in pod of replicated service.

hope helped.


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -