add db, ingress, pvc, secrets, svc, and deployment for jellystat
All checks were successful
Validate Kubernetes Manifests / kubeconform (pull_request) Successful in 15s
All checks were successful
Validate Kubernetes Manifests / kubeconform (pull_request) Successful in 15s
This commit is contained in:
55
clusters/ipv6/monitoring/jellystat/jellystat.yml
Normal file
55
clusters/ipv6/monitoring/jellystat/jellystat.yml
Normal file
@@ -0,0 +1,55 @@
|
||||
---
|
||||
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
|
||||
Reference in New Issue
Block a user