kipunji/kustomize/app/deployment.yaml

44 lines
928 B
YAML
Raw Normal View History

2024-07-02 21:32:38 +00:00
---
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
2024-07-05 20:25:08 +00:00
optional: true
2024-07-27 21:17:41 +00:00
livenessProbe:
httpGet:
path: /livez
port: 4567
initialDelaySeconds: 3
periodSeconds: 3
2024-07-27 21:29:06 +00:00
readinessProbe:
httpGet:
path: /readyz
port: 4567
initialDelaySeconds: 5
periodSeconds: 5