Skip to content

Instantly share code, notes, and snippets.

@initcron
Created September 8, 2023 07:18
Show Gist options
  • Save initcron/7616091f5d466df2d4b909da334c3748 to your computer and use it in GitHub Desktop.
Save initcron/7616091f5d466df2d4b909da334c3748 to your computer and use it in GitHub Desktop.
Argo Rollout Spec for Vote App with Blue Green Strategy
apiVersion: argoproj.io/v1alpha1
kind: Rollout
metadata:
name: vote
labels:
role: vote
spec:
replicas: 4
minReadySeconds: 20
strategy:
blueGreen:
autoPromotionEnabled: true
autoPromotionSeconds: 30
activeService: vote
previewService: vote-bg
selector:
matchLabels:
app: python
role: vote
matchExpressions:
- key: version
operator: Exists
template:
metadata:
labels:
app: python
role: vote
version: v5
spec:
containers:
- name: app
image: schoolofdevops/vote:v5
envFrom:
- configMapRef:
name: vote
resources:
requests:
memory: "64Mi"
cpu: "50m"
limits:
memory: "128Mi"
cpu: "250m"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment