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

perl on php application on openshift
Developing OpenShift cartridges that need large binaries
Openshift not displaying application at given URL
How to use naked GoDaddy domain with OpenShift hosting? [closed]
Why is my app constantly pinged?
Not able to create Apps In Openshift free plan?
How to change Openshift jenkins java version?
Filter messages from rhc tail
Issue in Restart the app in open-shift
How to install ioncube Loader in OpenShift with WorkFlow Guide
OpenShift idle state issue
Multiple HAProxy instances on OpenShift
Remote Port Forwarding on OpenShift
error rhc app delete 500 error code
TimeOut Error in Openshift
Create app with REST API

Categories

HOME
facebook-messenger
kivy
dafny
theano
risk-management
out-of-memory
vue-resource
ipv6
repair
haxe
tfs2010
yeoman-generator-angular
match
bundler
temperature
pywinauto
scala-ide
coroutine
significance
jitsi
workday
hdl
kamailio
quantitative-finance
eclipse-emf
sipp
pdf.js
mod-wsgi
unordered-multimap
history.js
pyspark-sql
bonita
audit
premake
windows2012
osx-lion
payeezy
formsauthenticationticket
testlink
sbjson
flipkart
morphline
nomad
ipp-protocol
sonarqube5.2
rm
sony-future-lab-n
lightning-workbench
ilrepack
deedle
dblink
1010
ltrace
bpms
nitrousio
haraka
s-function
fuzzer
dmarc
spring-mongo
adp
noclassdeffounderror
apple-configurator
vim-plugin
gdl
variable-length-array
srv-record
android-studio-import
featuretoggle
google-gdk
componentart
unidata
kognitio-wx2
iplimage
maven-central
pageviews
nosql-aggregation
lsa
application-server
ember-table
insertion
oscilloscope
android-authenticator
simplecov
idispatch
gitx
uitextfielddelegate
autosize
algol68
groovy-console
getopts
database-deadlocks
kext
channelfactory
regression-testing
facebook-fbml
rational-unified-process
powergui
twitter-feed
rendering-engine

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