Skip to content

Latest commit

 

History

History
39 lines (23 loc) · 1.19 KB

canaryrelease.adoc

File metadata and controls

39 lines (23 loc) · 1.19 KB

Lab: Canary Release to Production

Background: Canary Release

Exercise: TBD

Got to GitLab and change "National Parks" name to "National Parks Geo" in src/main/java/com/openshift/evg/roadshow/parks/rest/BackendController.java. Commit the change to trigger the pipeline and wait at "Input Required" in pipeline

Go to ApplicationsRoutes and click on nationalparks-live. Edit the route

Edit Route
Split Traffic Link
Choose Alternative Service
Split Traffic

Make Router to do round robin

$ oc annotate route/nationalparks-live haproxy.router.openshift.io/balance=roundrobin

Test the route

for i in {1..10}; do curl http://nationalparks-live-demo.10.2.2.15.xip.io/ws/info/ ; echo "" ; done

Open parksmap in Chrome > Incognito or Firefox > New Private Window in order to disable caching. Refresh the page a few times and you should see every few requests the name of nationalparks in the right top menu changes.

When happy with the change, go to pipeline and click on promote to deploy the change in the live environment.