Skip to content

Instantly share code, notes, and snippets.

@ramene
Last active July 27, 2019 00:03
Show Gist options
  • Save ramene/4f43e1c501438e57a5cc12d342c769f4 to your computer and use it in GitHub Desktop.
Save ramene/4f43e1c501438e57a5cc12d342c769f4 to your computer and use it in GitHub Desktop.
apiVersion: argoproj.io/v1alpha1 # Changed from apps/v1
kind: Rollout # Changed from Deployment
# ----- Everything below this comment is the same as a deployment -----
metadata:
name: example-rollout
spec:
replicas: 2
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:1.15.4
ports:
- containerPort: 80
minReadySeconds: 30
revisionHistoryLimit: 3
strategy:
# ----- Everything above this comment are the same as a deployment -----
canary: # A new field that used to provide configurable options for a Canary strategy
steps:
- setWeight: 20
- pause: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment