47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: kipunji
|
|
annotations:
|
|
reloader.stakater.com/auto: "true"
|
|
spec:
|
|
replicas: 5
|
|
selector:
|
|
matchLabels:
|
|
app: kipunji
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: kipunji
|
|
spec:
|
|
containers:
|
|
- name: kipunji
|
|
image: git.kill0.net/ryanc/kipunji:latest
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- name: web
|
|
containerPort: 4567
|
|
env:
|
|
- name: SESSION_SECRET
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: kipunji-session-secret
|
|
key: session_secret
|
|
optional: true
|
|
envFrom:
|
|
- configMapRef:
|
|
name: kipunji-configmap
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /livez
|
|
port: 4567
|
|
initialDelaySeconds: 3
|
|
periodSeconds: 3
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /readyz
|
|
port: 4567
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 5
|