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 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?
openshiftv3 service url connection failed from within a project
How do I remove Domain from OpenShift Application
How to create re-encrypting route for hawkular-metrics in OpenShift Enterprise 3.2
Stop Web Application Programmatically
OpenShift Origin : Multiple Masters installation
CloudForms and Openshift
OpenShift CLI: oc vs rhc?
About Openshift Bandwidth - Have limits?
openshift spookyjs missing tiny-jsonrpc
OpenShift Next Gen fails to mount persistent volume
Deployment strategies in Openshift v3
How to change the default Pod address in openshift origin?
Openshift Online persistance storage
Do openshift ENV variables scale?

Categories

HOME
office365
entity-framework
apache-nifi
macos-sierra
facebook-messenger
openxml
android-fragments
writefile
message-queue
plpgsql
typeerror
docker-cloud
ontology
impala
specifications
cocotb
azure-graph-api
clish
bootstrap-switch
orc
feature-extraction
amazon-elb
libgit2
kaggle
restier
firemonkey-style
plyr
bitbake
mongodb-3.4
epplus
appcode
android-collapsingtoolbar
serversocket
love2d
cargo
slideshow
optionaldataexception
latexml
destroy
adblock
android-5.0-lollipop
head.js
aurelia-fetch-client
word-2007
stateless-session-bean
pecl
ipywidgets
google-identity-toolkit
jsf-2.3
odp.net-managed
swiffy
textblock
gwt-syncproxy
as3-api
taco
miniconda
apache-commons-digester
netdatacontractserializer
fantom
kefir.js
subview
cakephp-2.2
wicket-1.5
communicate
coding-efficiency
distributed-r
.htpasswd
xmi
mp4parser
disjoint-union
dibs
web-frameworks
chefspec
tfs-sdk
sfinae
litespeed
kext
ognl
rational-unified-process
inversion
gtktextview
isapi-redirect

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