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

What is a “backing pod”?
How to move an application from namespace to another
Rake issue when deploying ruby on rails
wordpress blog hosted with openshift security issue
Openshift accessing my app every 2 seconds?
Openshift - Warning! Could not start io.js application
Can a specific branch or commit be used in the Source-Url for an OpenShift Cartridge?
Remote Connect to OpenShift MySQL without Port Forwarding
Openshift nodejs app doesn't work for sending contact form to email
Openshift site shuts down unexpectedly
Database gear idling
openshift database and data directory
Openshift combine 3 gears into 1 gear in free plan
SSL Certificate Chain in a sacalable gear
Opening Secure Shell (SSH) at OpenShift using PUTTY does not work
Why does my openshift app timeout when I try to access the URL?

Categories

HOME
amazon-web-services
artificial-intelligence
long-integer
softlayer
command-prompt
braintree
facebook-android-sdk
port
hystrix
match
fbloginview
outlook-restapi
smartgwt
dma
texas-instruments
fresco
rpmbuild
google-sites
multiple-tables
spring-ldap
weex
bosun
kamailio
perfino
exchange-server-2010
web-push
tortoisemerge
prompt
python-appium
react-bootstrap-table
envoy
nsmutablearray
adminer
restful-architecture
char-pointer
django-smart-selects
extbase
python-sounddevice
word-cloud
dbcc
xcode8.2
destroy
bit-shift
directwrite
xcglogger
beeline
winston
skip-lists
sequence-diagram
palindrome
email-forwarding
openerp-6
annotatorjs
boost-compute
livecycle
ftp-client
nsdata
piping
bbc-micro
yii2-model
simian
android-async-http
fdt
persistent-object-store
gulp-uglify
ui4j
grinder
bayesglm
stack-smash
chicagoboss
featuretoggle
search-form
bootstrap-wysiwyg
angular-amd
nanomsg
directorysearcher
lumia-imaging-sdk
mfmessagecomposeview
forio-contour
redpitaya
fileshare
smips
postgres-xc
arel
ui-design
chefspec
stretch
android-dialog
websphere-6.1
java.lang.class
dropshadow
fbml
fragment-identifier
solandra
multiple-users
aspbutton
processors
.net-client-profile
main-method
stretchblt

Resources

Encrypt Message