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 do you find the cartridge short names in Openshift?
Openshift access to phpMyAdmin?
Openshift domain shows instead of desired domain
JDK 8 support at DIY cartridge in OpenShift
Openshift Multiple Domains Apps
Can I tweak Openshift's haproxy.cfg using a file in my scalable app's git repository?
Can't download CXF artifacts on JBossFuse running on OpenShift
How to avoid that my server restarts every time I commit something?
NodeJS in OpenShift EADDRINUSE Error
OpenShift custom domain not working for internal pages
Openshift node.js cartridge hooks are not run
deploy to openshift, got Error: Attempt to unlock async#*, which hasn't been locked
Error when pushing changes to openshift project
Maximum number of requests for free tariff on openshift
Openshift: 504 Gateway Time-out The server didn't respond in time
OpenShift deployment process fails after enabling JENKINS

Categories

HOME
freeradius
yaml
paypal-ipn
fogbugz
elk-stack
tibco
wagtail
heuristics
scrape
dhcp
mahout-recommender
heap-dump
google-cloud-logging
clr
raml
dashdb
cell
web-push
tf-idf
ccavenue
tsung
javax.persistence
windows2012
riotjs
cloveretl
apptentive
redgate
jade4j
nanogallery
recovery
linq.js
task-parallel-library
microkernel
kitura
bit-shift
rightnow-crm
nonlinear-functions
ilrepack
freshdesk
word-2007
network-protocols
case-when
emacs25
http4s
nitrousio
gapi
cocoa-bindings
system.net.mail
spring-mongo
raw-sockets
android-sdcard
strpos
mathnet
distributed-cache
utf-16
polymerfire
gulp-uglify
okta-api
currency-exchange-rates
teensy
ajax4jsf
godeps
stack-smash
css-paged-media
ngcordova
whitespace-language
deque
shell-extensions
ssmtp
incron
directorysearcher
cakephp-2.2
treeline
.htpasswd
xmi
ivalueconverter
nosql-aggregation
profiles
saga
ggts
boinc
mp4parser
postgres-xc
hints
spiral
cmath
ckeditor.net
onconfigurationchanged
viewpagerindicator
acpi
type-safety
motodev-studio
nosetests
uipasteboard
ognl
channelfactory
libxslt
mygeneration
getimagesize
jquery-effects
rakudo
efs
rendering-engine

Resources

Encrypt Message