Skip to content

pdeblois/blue-green-openshift

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blue Green Deployments

The master is blue, the branch is green.

Deploy from OSEv3.

new project and blue app from master

oc new-project bluegreen --display-name="Blue Green" --description='Blue Green Deployments'
oc new-app https://github.com/sZghab/blue-green-openshift.git#master --name=blue --strategy=source

expose bluegreen service (using blue)

oc expose service blue --name=bluegreen

green app deploy

oc new-app https://github.com/sZghab/blue-green-openshift.git#green --name=green

switch services to green

oc get route/bluegreen -o yaml | sed -e 's/name: blue$/name: green/' | oc replace -f -

and back again

oc get route/bluegreen -o yaml | sed -e 's/name: green$/name: blue/' | oc replace -f -

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%