Add Jellystat deployment, service, PVCs, and sealed secret configurations
This commit is contained in:
71
clusters/default/monitoring/jellystat/jellystat.yml
Normal file
71
clusters/default/monitoring/jellystat/jellystat.yml
Normal file
@@ -0,0 +1,71 @@
|
||||
---
|
||||
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:
|
||||
initContainers:
|
||||
- name: jellystat-db
|
||||
image: postgres:alpine
|
||||
restartPolicy: Always
|
||||
ports:
|
||||
- containerPort: 5432
|
||||
env:
|
||||
- name: POSTGRES_DB
|
||||
value: "jfstat"
|
||||
- name: POSTGRES_USER
|
||||
value: "postgres"
|
||||
- name: POSTGRES_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: jellystat-secret
|
||||
key: password
|
||||
- name: PGDATA
|
||||
value: /mnt/postgres/data
|
||||
volumeMounts:
|
||||
- name: postgres-data
|
||||
mountPath: /mnt/postgres
|
||||
containers:
|
||||
- name: jellystat
|
||||
image: cyfershepard/jellystat:1.1.6
|
||||
ports:
|
||||
- containerPort: 3000
|
||||
env:
|
||||
- name: POSTGRES_USER
|
||||
value: "postgres"
|
||||
- name: POSTGRES_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: jellystat-secret
|
||||
key: password
|
||||
- name: POSTGRES_IP
|
||||
value: "localhost"
|
||||
- name: POSTGRES_PORT
|
||||
value: "5432"
|
||||
- name: JWT_SECRET
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: jellystat-secret
|
||||
key: jwt
|
||||
volumeMounts:
|
||||
- name: backups
|
||||
mountPath: /app/backend/backup-data
|
||||
volumes:
|
||||
- name: postgres-data
|
||||
persistentVolumeClaim:
|
||||
claimName: jellystat-longhorn
|
||||
- name: backups
|
||||
persistentVolumeClaim:
|
||||
claimName: jellystat-backups-longhorn
|
||||
Reference in New Issue
Block a user