Last active
July 27, 2019 00:03
-
-
Save ramene/4f43e1c501438e57a5cc12d342c769f4 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
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