Created
January 10, 2023 02:41
-
-
Save jei0486/c096a6cc594df94e71d70b049ff1d2f9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# argocd-canary-rollout.yml | |
apiVersion: argoproj.io/v1alpha1 | |
kind: Rollout | |
# 이 아래 내용은 기존 Deployment와 동일하게 작성 | |
metadata: | |
name: demo-scg-rollout | |
namespace: gateway | |
spec: | |
minReadySeconds: 30 | |
revisionHistoryLimit: 3 | |
replicas: 2 | |
selector: | |
matchLabels: | |
app: demo-scg | |
template: | |
metadata: | |
labels: | |
app: demo-scg | |
spec: | |
containers: | |
- name: demo-scg | |
image: jei0486/demo-scg | |
imagePullPolicy: Always | |
ports: | |
- name: http | |
containerPort: 8080 | |
env: | |
- name: 'spring.application.name' | |
value: 'demo-scg' | |
- name: 'spring.profiles.active' | |
value: 'dev' | |
- name: "KUBERNETES_NAMESPACE" | |
valueFrom: | |
fieldRef: | |
fieldPath: "metadata.namespace" | |
# 이 위의 내용은 기존 Deployment와 동일하게 작성 | |
strategy: | |
canary: | |
steps: | |
- setWeight: 25 | |
- pause: {} | |
# - pause: { duration: 10 } # 10 seconds | |
- setWeight: 50 | |
- pause: {} | |
- setWeight: 75 | |
- pause: {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment