canary-release-demo

module
v0.0.0-...-13a6933 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2021 License: MIT

README

Introduction

A repo to test Azure DevOps, Kubernetes, Docker and other tools or methodologies

Build

  • cd src
  • docker build -t bjd145/whatos:1.4 .

Run

  • docker run -p 8081:8081 -e API_VERSION=v3 bjd145/whatos:1.4

Test

Canary Release with Blue/Green Deployment and Helm

10% Traffic to V2

  • helm upgrade -n whatosapi -i --values .\deploy\values.yaml
    --set service.greenWeight=10%,service.blueWeight=90%,blueReplicaCount=3,greenReplicaCount=1 \ whatos-release
    .\deploy

50% Traffic to V2

  • helm upgrade -n whatosapi -i --values .\deploy\values.yaml
    --set service.greenWeight=50%,service.blueWeight=50%,blueReplicaCount=2,greenReplicaCount=2
    whatos-release
    .\deploy

90% Traffic to V2

  • helm upgrade -n whatosapi -i --values .\deploy\values.yaml
    --set service.greenWeight=90%,service.blueWeight=10%,blueReplicaCount=1,greenReplicaCount=3
    whatos-release
    .\deploy

100% Traffic to V2

  • helm upgrade -n whatosapi -i --values .\deploy\values.yaml
    --set service.greenWeight=100%,service.blueWeight=0%,blueReplicaCount=0,greenReplicaCount=4
    whatos-release
    .\deploy

Directories

Path Synopsis
src

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL