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

Openshift Upgrade Plan From India
PayPal integration with OpenShift Online — SSL IPN Issue
Web App works fine on locat tomcat server but giving 404 after pushing on shift
Openshift nodes storage configuration
OpenShift - how to change one gear size in an app with two gears
How to update a distro package in Openshift
Openshift deployment reserve file timestamp
How to add a custom hostname for project in OpenShift Online (Next Gen) Developer Preview
HAProxy work with CodeIgniter (OpenShift)
OpenShift-Origin chose to use an SDN
routing in openshift v3
pkg_resources.VersionConflict: (six 1.3.0), Requirement.parse('six>=1.5'))
Horizontal pod autoscaling in openshift
Using only Two gear but openshift show Three gear in use
How to redirect to a file tail of an openshift log?
What should I use if xip.io is not an option in local install of Openshift?

Categories

HOME
visual-studio
protocol-buffers
angular-ui-grid
dotnetnuke
adfs3.0
seedstack
jms
barcode-scanner
selenium-builder
systemd
ews
theano
odata
bing-search
google-webmaster-tools
header
save
onvif
roku
log4j2
clickable-image
nexus3
slide
documentum
clish
cname
varnish-vcl
adobe-illustrator
cmake-gui
spring-shell
workday
liferay-6.2
pymongo
substring
managed-c++
strophe.js
beego
uilocalnotification
tf-idf
math.js
react-bootstrap-table
cube
sfml
bitbake
basic-authentication
nic
epplus
quickcheck
nest
ftp-server
hypothesis-test
git-tfs
permission-denied
docker-ucp
openstack-glance
extjs4.1
maatwebsite-excel
rational-performance-test
google-identity-toolkit
callouts
fdt
polymerfire
stack-smash
variable-length-array
srv-record
css-paged-media
sequence-sql
alwayson
artisan
abstract-factory
flow-js
ipod
nssortdescriptor
mgwt
tidyr
google-hangouts
device-admin
libgcc
lumia-imaging-sdk
pageviews
wso2bam
saga
frontbase
objective-c-runtime
blobstorage
oscilloscope
jquery-cycle
examine
significant-digits
icenium
ckeditor.net
smartfox
lynx
semantic-merge
multiscaleimage
playorm
wndproc
uitextfielddelegate
monocross
exponent
netstream
azure-acs
rtd
photo-management
ognl
webresponse
regression-testing
pyjamas
icicles
tabbarcontroller
html-components
firephp
jquery-effects
tso
index.dat
server-load
jvm-bytecode

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