Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
37 lines (37 sloc)
1.11 KB
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
# This example demonstrates a Rollout using the canary update strategy with a customized rollout | |
# plan. The prescribed steps initially sets a canary weight of 20%, then pauses indefinitely. Once | |
# resumed, the rollout performs a gradual, automated 20% weight increase until it reaches 100%. | |
apiVersion: argoproj.io/v1alpha1 | |
kind: Rollout | |
metadata: | |
name: rollout-canary | |
spec: | |
replicas: 5 | |
revisionHistoryLimit: 2 | |
selector: | |
matchLabels: | |
app: rollout-canary | |
template: | |
metadata: | |
labels: | |
app: rollout-canary | |
spec: | |
containers: | |
- name: rollouts-demo | |
image: argoproj/rollouts-demo:blue | |
imagePullPolicy: Always | |
ports: | |
- containerPort: 8080 | |
strategy: | |
canary: | |
steps: | |
- setWeight: 20 | |
# The following pause step will pause the rollout indefinitely until manually resumed. | |
# Rollouts can be manually resumed by running `kubectl argo rollouts promote ROLLOUT` | |
- pause: {} | |
- setWeight: 40 | |
- pause: {duration: 40s} | |
- setWeight: 60 | |
- pause: {duration: 20s} | |
- setWeight: 80 | |
- pause: {duration: 20s} |