Skip to content

jinwook-im/hello-profile

Repository files navigation

Blue-green / Canary deployment strategy Test

Default Profile

application.yaml

spring:
  profiles:
    active: blue
    value: blue

Blue application

application-blue.yaml

spring:
  profiles:
    value: blue

Green application

application-green.yaml

spring:
  profiles:
    value: green

Docker build

docker build -e "SPRING_PROFILES_ACTIVE=blue" . 

Deployment environment

ref : deployment-green.yaml

Add env: SPRING_PROFILES_ACTIVE and value as below

### <생략> ###
      containers:
        - name: test
          image: testdockergin.azurecr.io/test:48
          ports:
            - containerPort: 8080
          env:
            - name: SPRING_PROFILES_ACTIVE
              value: green

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published