All checks were successful
Validate Kubernetes Manifests / kubeconform (pull_request) Successful in 15s
56 lines
1.3 KiB
YAML
56 lines
1.3 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: jellystat
|
|
namespace: monitoring
|
|
spec:
|
|
strategy:
|
|
type: Recreate
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: jellystat
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: jellystat
|
|
spec:
|
|
containers:
|
|
- name: jellystat
|
|
image: cyfershepard/jellystat:1.1.7
|
|
readinessProbe:
|
|
exec:
|
|
command:
|
|
- bash
|
|
- -c
|
|
- |
|
|
(echo >/dev/tcp/jellystat-db.monitoring.svc.cluster.local/5432)
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 5
|
|
failureThreshold: 3
|
|
env:
|
|
- name: JWT_SECRET
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: jellystat-secret
|
|
key: jwt
|
|
- name: POSTGRES_PASSWORD
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: jellystat-secret
|
|
key: password
|
|
- name: POSTGRES_IP
|
|
value: "jellystat-db.monitoring.svc.cluster.local"
|
|
- name: POSTGRES_PORT
|
|
value: "5432"
|
|
- name: POSTGRES_USER
|
|
value: "postgres"
|
|
volumeMounts:
|
|
- name: backups
|
|
mountPath: /app/backend/backup-data
|
|
volumes:
|
|
- name: backups
|
|
persistentVolumeClaim:
|
|
claimName: jellystat-backups-longhorn
|