toy/kustomize/deployment.yaml
Ryan Cavicchioni f131f64641
All checks were successful
Gitea Actions Demo / lint (push) Successful in 1m33s
Gitea Actions Demo / test (push) Successful in 1m18s
Gitea Actions Demo / release-image (push) Successful in 1m1s
Add readiness probe
2024-07-27 16:29:06 -05:00

44 lines
928 B
YAML

---
kind: Deployment
apiVersion: apps/v1
metadata:
name: toy
labels:
app: toy
spec:
replicas: 3
selector:
matchLabels:
app: toy
template:
metadata:
labels:
app: toy
spec:
containers:
- name: toy
image: git.kill0.net/ryanc/toy:latest
ports:
- name: web
containerPort: 4567
env:
- name: SESSION_SECRET
valueFrom:
secretKeyRef:
name: toy-session-secret
key: toy-session-secret
optional: true
livenessProbe:
httpGet:
path: /livez
port: 4567
initialDelaySeconds: 3
periodSeconds: 3
readinessProbe:
httpGet:
path: /readyz
port: 4567
initialDelaySeconds: 5
periodSeconds: 5