openshift


Change Deployment config from shell


I need to vary the deployment config of an application, by adding an extra YAML section within it (in the example the section name: ping and its two attributes)
containers:
- name: openshift-wf-cluster
image: 172.30.1.1:5000/demo/openshift-wf#sha256:5d7e13e981f25b8933d54c8716d169fadf1c4b9c03468a5b6a7170492d5b9d93
ports:
- containerPort: 8080
protocol: TCP
- name: ping
containerPort: 8888
protocol: TCP
Is it possible to do it from the oc shell command ?(without manually editing the file) A sort of adding an extra node to one section of the YAML ?
Yes.
oc edit dc/deployment-1-name

Related Links

How can I get SSH hosts of gears (uid#host) in Openshift scalable app?
Why won't RHC tell me what all apps are available?
Accessing Hawtio Management Console with Openshift
How to add monit cartridge to OpenShift?
Size/File Limit for MySQL table with FULLTEXT index
Editing httpd.conf (openshift.conf) to create an apache Alias
Webapps just show blank page when deploying on OpenShift
Locked out of Ghost Blog on OpenShift
Start and stop action_hooks not firing in openshift online PHP 5.3
how to run flask based server locally before deploying to openshift
Possible to upgrade cartridges on OpenShift online?
openshift jersey not working
unable to deploy WAR file via git in openshift
Unable to login to Openshift
“No system SSH available” error on OpenShift rhc snapshot save on Windows 8
How do I get WordPress emails working on OpenShift?

Categories

HOME
protocol-buffers
macos-sierra
plesk
gaming
vagrant
livecode
long-integer
selenium-builder
tabs
mathematical-optimization
dependencies
greasemonkey
save
minecraft
cisco
polymer-2.x
jpa-criteria
mailmerge
global-variables
vmware-workstation
nullreferenceexception
hdl
connection-refused
stackexchange.redis
substring
sybase-ase
software-packaging
social-networking
openbr
seafile-server
kendo-listview
ms-media-foundation
apptentive
cmis
express-session
pdfminer
variable-variables
hidden-markov-models
iscroll
system-on-chip
jqgrid-asp.net
sendinput
common-table-expression
return-type
tinyioc
icecast
beeline
cordova-ios
htmlspecialchars
popen
test-data
case-when
multi-touch
nsrunloop
qtcpsocket
jtag
groovyfx
maximize
mercurial-extension
psd
openmrs
trust
teensy
variable-length-array
srv-record
artisan
shell-extensions
mathematical-expressions
comctl32
inputbox
berkeley-db-xml
visual-c++-2012
nidaqmx
loginview
screwturn
meteor-collections
profiles
non-ascii-characters
stty
django-facebook
ax
xs
handshake
onconfigurationchanged
datacontracts
vows
qcar-sdk
mongrel
gtktextview
ning
iphone-sdk-3.1.3
watchpoint
jvm-bytecode

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App