Skip to main content

Pivotal Cloud Foundry Developer Certification - Blue Green Deployments

What is a blue-green deployment? Why would you use it?
Blue green deployment is used to achieve zero downtime for deployed application in CF. To achieve this we need to have multiple version/instances of application deployed.

How do you map and unmap routes with cf?

cf map-route and cf unmap-route

How does route mapping enable a blue-green deployment?
Route mapping enables us to map multiple version of application
to the same route and traffic is distributed to the different instances based on number of instances. The production route is not mapped to another instance until the new version is deployed successfully.
What other steps are involved in a blue-green deployment
Step 1: Push an App
Step 2: Update App and Push
Step 3: Map Original Route to Green
Step 4: Unmap Route to Blue
Step 5: Remove Temporary Route to Green

Refer: https://docs.cloudfoundry.org/devguide/deploy-apps/blue-green.html

Comments