Skip to content

Latest commit

 

History

History
26 lines (14 loc) · 762 Bytes

README.md

File metadata and controls

26 lines (14 loc) · 762 Bytes

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/isabellavieira/blue-green-openshift#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/isabellavieira/blue-green-openshift#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 -