kipunji/kustomize/app/rollout.yaml

59 lines
1.3 KiB
YAML
Raw Permalink Normal View History

2024-08-11 17:12:02 +00:00
---
apiVersion: argoproj.io/v1alpha1
kind: Rollout
metadata:
2024-08-24 15:42:55 +00:00
name: kipunji
2024-08-18 06:18:49 +00:00
annotations:
reloader.stakater.com/auto: "true"
2024-08-11 17:12:02 +00:00
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:
2024-08-24 15:42:55 +00:00
app: kipunji
2024-08-11 17:12:02 +00:00
template:
metadata:
labels:
2024-08-24 15:42:55 +00:00
app: kipunji
2024-08-11 17:12:02 +00:00
spec:
containers:
2024-08-24 15:42:55 +00:00
- name: kipunji
image: git.kill0.net/ryanc/kipunji:latest
2024-08-11 17:12:02 +00:00
imagePullPolicy: Always
ports:
- name: web
containerPort: 4567
env:
- name: SESSION_SECRET
valueFrom:
secretKeyRef:
2024-08-24 15:42:55 +00:00
name: kipunji-session-secret
2024-08-11 17:12:02 +00:00
key: session_secret
optional: true
2024-08-18 06:35:47 +00:00
envFrom:
- configMapRef:
2024-08-24 15:42:55 +00:00
name: kipunji-configmap
2024-08-11 17:12:02 +00:00
livenessProbe:
httpGet:
path: /livez
port: 4567
initialDelaySeconds: 3
periodSeconds: 3
readinessProbe:
httpGet:
path: /readyz
port: 4567
initialDelaySeconds: 5
periodSeconds: 5