openshift


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


if I have multiple replicas of my web service, how can I ssh and investigate a single pod?
so you have to list the pods and do oc rsh to the pod name you want to :
$ oc project my-project
Now using project "my-project" on server "https://origin.my-company.com:8443".
$ oc get 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 one and rsh into it:
$ oc rsh my-pod-72-s9664
sh-4.2$
Now you have a shell opened in a pod of your replicated service.
Hope it helped.

Related Links

how to redirect http to https on an openshift golang app?
how to add keycloak module to openshift wildfly cartridge?
openshift readiness probe error: /bin/sh can't access tty; job control turned off
How to store static contents outside WildFly installation and access them via HTTP?
How to redirect API server hosted on Openshift with Domain purchased from Godaddy
Making openshift origin docker containers persistent after reboot
Openshift pod priority
Unable to deploy app due to wrong permissions in some files
No Internet connection from Pods within openshift
Location of add-user.sh in Openshift
Openshift V2 - Custom Cartridge Permission denied opening port
How to group deployments under common template name in OpenShift console
Moving a docker-compose container to openshift V3
Openshift: Automatically update upstream images
Openshift : I am trying to run rhc setup on linux. Am getting username and password error message
how openshift ldap auth provider trust self-signed certificate without a rootca signed

Categories

HOME
cocoapods
google-chrome
android-espresso
gaming
writefile
haproxy
mongoid
docker-cloud
navigation
drag-and-drop
fedora
roku
reportviewer
fasm
phpstorm-2017.1
jquery-file-upload
mahout-recommender
twisted
gmp
restier
xdebug
ruby-daemons
iwebbrowser2
amazon-cloudtrail
docx4j
advanced-filter
restful-architecture
android-canvas
java-stream
char-pointer
grails-2.5
twilio-php
telephonymanager
widestring
iscroll
sbjson
yoast
julius-speech
permission-denied
viewmodel
sony-future-lab-n
scala-breeze
watir-webdriver
webvtt
htmlspecialchars
scala-collections
wikimapia
degrees
emf-compare
instafeedjs
streamwriter
decoder
clp
simian
fdt
flipclock
gdl
blockquote
postal-code
fantom
compositetype
modern.ie
karma-coverage
whitespace-language
kotlin-android-extensions
lifetime
vs-unit-testing-framework
smacss
webautomation
redpitaya
incognito-mode
spring-social-linkedin
unrealscript
iirf
django-facebook
quickgraph
rikulo
aero
donut-chart
idispatch
msinfo32
exponent
memory-pool
infopath-2007
will-paginate
simile
django-pagination
webresponse
gaelyk
bass
solandra
rational-unified-process
projectpier
source-code-protection
accumulator
watchpoint
gui-designer

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App