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

Openshift3 Does free hosting work
In openshift, router pod can NOT start up successfully
Add JAVA_OPTS to jboss-eap70-openshift
Q: Service with multiple ports/protocols per route (e.g. HTTP and HTTPS) possible in OpenShift?
How to configure gnupg in openshift
Error when upload a yml with cluster policy bindings in openshift “already exist”
How to config Wildfly Server on OpenShift V3.x
Can I generate incremental Build Name in an OpenShift Origin build?
Differences between OpenShift and Kubernetes
Openshift: how to edit scc non-interactively?
Is there any way to access the git repository when pushing to openshift (v2)?
Openshift: unable to reach GitHub for running S2I
Openshift 2.4 cdk Gitlab-CE “SchedulerPredicates failed due to PersistentVolumeClaim is not bound: ”gitlab-ce-redis-data“, which is unexpected.”
How to ssh a openshift3 pod if replicas are more than one?
How do you create a deployment configuration in OpenShift? Is it automatic for new-app based on a docker image?
Why my OpenShift account has 0 allowed gears?

Categories

HOME
oracle
visual-studio
mc
matrix
devexpress
command-prompt
celery
qooxdoo
openflow
amp
linker
eddystone
msmq
log4j2
azure-graph-api
slide
orc
angular4
multi-step
google-awareness
bundler
twisted
codefluent
gitkraken
weex
pst
sharedpreferences
fluent-migrator
crud
hevc
points
basex
bobo-browse.net
cube
fatfs
tightvnc
uipickerview
system-on-chip
axis
dredd
webalizer
deployd
iptv
htmlspecialchars
nitrousio
oracle-fusion-apps
mifos
dcount
cdo.message
codecharge
apple-configurator
simian
facebook-ios-sdk
gulp-uglify
html.actionlink
sqlbase
netdatacontractserializer
jnlp
webproject
mojo
jcheckbox
jolie
ecos
tabletools
code39
iirf
bcdedit
chartfx
chefspec
2d-vector
lynx
word-frequency
pageheap
yuidoc
datacontracts
directshow.net
android-2.1-eclair
ios-4.2
mongrel
urchin
android-input-method
ntruencrypt
tso
html-generation

Resources

Encrypt Message