application.yaml
spring:
profiles:
active: blue
value: blue
application-blue.yaml
spring:
profiles:
value: blue
application-green.yaml
spring:
profiles:
value: green
docker build -e "SPRING_PROFILES_ACTIVE=blue" .
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