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

Open shift Auto scaling
Using OpenShift for non-web application?
openshift piwik quickstart
Openshift, can't restart application “Another operation is already running”
Unable to Deploye War file on OpenShipt
How can I deploy a resource file to scaled gears?
Openshift Gear performance, IOWAIT
openshift CNAME for .tk
OpenShift DIY cartridge and LEMP installation
How to get correct connection info for redis cartridge?
How to browse user generated folder in Openshift?
How best to deploy this multi-tier app?
Openshift first steps
503 Service Temporarily Unavailable when i launching my website at openshift
OpenShift: Corn job script to backup mysql and email the backup file
Is there a limit to the number of aliases for a given openshift application?

Categories

HOME
qt
python-2.7
mod-rewrite
vagrant
adfs3.0
activemq
command-prompt
theano
ios-simulator
slider
turbojpeg
position
outlook-restapi
max-msp-jitter
playframework-2.0
significance
raml
pst
liferay-6.2
sybase-ase
raima
uri
offline-caching
math.js
splunk-query
docx4j
guice
objectmapper
opnet
riotjs
mongoengine
buildforge
orchardcms-1.8
busboy
tidal-scheduler
distributed-caching
access-denied
fluid-mac-app-engine
wysihtml5
sonarqube5.2
return-type
amazon-elastic-beanstalk
winston
visual-format-language
skip-lists
scala-collections
polymaps
openquery
jsf-2.3
jenkins-workflow
cdo.message
oci
android-4.2-jelly-bean
unsigned
powerpoint-2013
apache-pig-grunt
exists
mathnet
gravatar
ambiguity
dnx50
screen-orientation
canopy
wlanapi
signed
html-escape-characters
incron
operands
rebar
utf8-decode
lumia-imaging-sdk
squeezebox
wso2bam
jomsocial
profiles
iosched
ggts
sql-view
ember-table
indesign-server
ldif
background-thread
android-authenticator
chronometer
border-box
platform-independent
series-40
motodev-studio
nsrangeexception
rtd
tacit-programming
datagridcolumn
word-automation

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile