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 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?
OpenShift Exceeding disk quota
where can I find the postreceive gear on openshfit?
Is it possible to run 'rhc snapshot save' without temporarily disabling your application?
Openshift scaling on specific (software) condition
Unable to install Openshift RHC tools
Advertising on free version of Openshift?
Can Scripts host on openshift connect remote mysql?
web2py with MongoHQ deploy at openshift: RuntimeError: no driver available ('pymongo',)
Custom node.js cartridge to support custom npm and node engine on Openshift

Categories

HOME
elasticsearch
ionic2
protocol-buffers
macos-sierra
vagrant
clearcase
focus
yii
schema.org
applescript
key
apk
video-streaming
clone
wine
slide
smooks
jpa-2.0
asp.net-core-1.0
supervisord
temperature
phonegap-build
vertica
user-defined-types
android-contacts
playframework-2.0
maven-plugin
sipp
opentext
introspection
ipa
fstar
android-cardview
sap-lumira
tf-idf
matlab-app-designer
phpstorm-2016.1
mongodb-3.4
reporting
lxml
counting
apptentive
cordys-opentext
recovery
android-n
linq.js
assemblies
viewcontroller
raytracing
contactless-smartcard
permission-denied
nomad
linq-to-excel
rightnow-crm
cordova-ios
redisson
sigsegv
punctuation
skip-lists
patternlab.io
clrs
dex
degrees
fitbit
allegro
logical
always-on-top
oci
right-to-left
jeditable
xcopy
360-degrees
flow-js
wicked-gem
mxe
subview
pass-by-value
phonegap-facebook-plugin
google-hangouts
lifetime
vs-unit-testing-framework
network-printers
csslint
jchartfx
iosched
colon
hints
web-frameworks
cmath
towers-of-hanoi
taskkill
gwt-celltable
pinax
comment-conventions
word-automation

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