Add Argo Rollout
All checks were successful
Gitea Actions Demo / lint (push) Successful in 1m22s
Gitea Actions Demo / test (push) Successful in 1m18s
Gitea Actions Demo / release-image (push) Successful in 1m7s

This commit is contained in:
Ryan Cavicchioni 2024-08-11 12:12:02 -05:00
parent b6f05b475f
commit c344306da5
Signed by: ryanc
GPG Key ID: 877EEDAF9245103D
2 changed files with 39 additions and 0 deletions

View File

@ -5,5 +5,6 @@ namespace: toy
resources: resources:
- secret.yaml - secret.yaml
- deployment.yaml - deployment.yaml
- rollout.yaml
- services.yaml - services.yaml
- ingress.yaml - ingress.yaml

View File

@ -0,0 +1,38 @@
---
apiVersion: argoproj.io/v1alpha1
kind: Rollout
metadata:
name: toy
spec:
replicas: 5
strategy:
canary:
steps:
- setWeight: 20
- pause: {}
- setWeight: 40
- pause: {duration: 10}
- setWeight: 60
- pause: {duration: 10}
- setWeight: 80
- pause: {duration: 10}
revisionHistoryLimit: 2
selector:
matchLabels:
app: toy
template:
metadata:
labels:
app: toy
spec:
containers:
- name: rollouts-demo
image: git.kill0.net/ryanc/toy:latest
ports:
- name: web
containerPort: 4567
protocol: TCP
resources:
requests:
memory: 32Mi
cpu: 5m