Created
June 9, 2024 15:52
-
-
Save 3ng1n33r/126410649d6ddacd542956853e464b70 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
kind: Rollout | |
metadata: | |
name: canary-demo | |
spec: | |
replicas: 5 | |
revisionHistoryLimit: 1 | |
selector: | |
matchLabels: | |
app: canary-demo | |
template: | |
metadata: | |
labels: | |
app: canary-demo | |
spec: | |
containers: | |
- name: canary-demo | |
image: gcr.io/google-samples/hello-app:1.0 | |
imagePullPolicy: Always | |
ports: | |
- name: http | |
containerPort: 8080 | |
protocol: TCP | |
resources: | |
requests: | |
memory: 32Mi | |
cpu: 5m | |
limits: | |
memory: 32Mi | |
strategy: | |
canary: | |
steps: | |
- setWeight: 20 | |
- pause: {} | |
- setWeight: 40 | |
- pause: {duration: 60} | |
- setWeight: 60 | |
- pause: {duration: 60} | |
- setWeight: 80 | |
- pause: {duration: 60} | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: canary-demo | |
labels: | |
app: canary-demo | |
spec: | |
ports: | |
- port: 80 | |
targetPort: 8080 | |
protocol: TCP | |
name: http | |
selector: | |
app: canary-demo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment