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

No Apps - Using 2 of 3 gears
Attempting to save a snapshot complains Application not found
Adding cron job in openshift without using git
openshift jetpack issue: request timed out
How to update “downloadable cartridge” in OpenShift online
Backup database when no more disk space
How to customize an openshift repo
View the log in WildFly Cartridges in OpenShift
Which action hooks are available for the wildfly cartridge on openshift?
App not coming up: SEVERE: Error listenerStart
how to install rpmrebuild in openshift for restricted user?
Openshift Online 503 Service Unavailable — site was working fine for days now has error
OpenShift Play Application Deployment websocket
Firewall management on OpenShift
OpenShift & SwiftMail email authentication on remote site only
Distributing $OPENSHIFT_DATA_DIR content on scalable app

Categories

HOME
user-interface
dotnetnuke
d3.js
code-formatting
initialization
gallery
greasemonkey
tibco
capistrano
migrate
circleci
rangy
smooks
corona
phonegap-build
vmware-workstation
cocos2d-android
adobe-illustrator
cmake-gui
bsd
neo4j.rb
mime-types
eclipse-emf
ratio
react-dnd
uri
android-service
oracleforms
sendmessage
microprocessors
social-networking
quick-nimble
fotorama
kendo-listview
devtools
autoencoder
express-session
subclassing
django-crispy-forms
hidden-markov-models
system-on-chip
opal-framework
spongycastle
section508
.net-micro-framework
return-type
sony-future-lab-n
nonlinear-functions
lightning-workbench
business-rules
elastic4s
yui3
okio
deferred-rendering
rails-engines
android-async-http
flipclock
trust
certificate-authority
knife
search-form
postal-code
embeddedwebserver
phpredis
directorysearcher
lifetime
squeezebox
box2dweb
webautomation
coding-efficiency
frontbase
grails-2.3
jquery-lazyload
dojo-1.9
handshake
sfinae
coordinate
zotonic
opends
fitch-proofs
navigationcontroller
gwt-celltable
dynamic-c
bll
iphone-sdk-4.3
eventaggregator
tacit-programming
ntruencrypt
autobench
version-control-migration
watchpoint

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile