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

Getting “Cannot connect to the Docker daemon” error when creating new app from git repo in fabric8
OpenShift-Ansible with MS Active Directory
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?

Categories

HOME
events
user-interface
svn
facebook-messenger
writefile
transactions
embedded-resource
initialization
whmcs
tabs
clone
ui-automation
graphql-js
azure-logic-apps
spring-security-oauth2
tiff
asciimath
exe
http-authentication
significance
deepfreeze
adobe-illustrator
raml
android-custom-view
data-type-conversion
android-permissions
restier
jstree
ipa
locks
spring-rabbitmq
netstat
django-crispy-forms
elastica
oauth2-playground
dagger
oracle-bmcs
kitura
absolute
roracle
supertest
md5-file
embedded-v8
simple-schema
connect-direct
glassfish-4.1
sesame
gmaps.js
.when
ltrace
s-function
jenkins-workflow
deferred-rendering
accessibilityservice
gwt-syncproxy
certificate-authority
django-validation
voronoi
diawi
lovefield
android-mapview
mixins
supersocket.net
bootstrap-wysiwyg
flow-js
erlog
camus
createfile
sunos
password-recovery
dnsjava
nesper
multivariate-testing
windows-rt
visual-studio-6
relationships
ecos
loginview
otl
redpitaya
meteor-collections
webaii
jchartfx
jms-serializer
code39
frontbase
disjoint-union
jacob
statechart
jbox2d
ofstream
chefspec
office-app
smartfox
tridion-2011
jquery-dialog
clrprofiler
getopt-long
fitch-proofs
uploading
expression-web
motodev-studio
groovy-console
data-dump
winsxs
page-curl
aptitude
ccl
activestate
raw-data
ppc
bucket
powergui

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