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:
46
clusters/ipv6/monitoring/jellystat/jellystat-db.yml
Normal file
46
clusters/ipv6/monitoring/jellystat/jellystat-db.yml
Normal file
@@ -0,0 +1,46 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: jellystat-db
|
||||
namespace: monitoring
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: jellystat-db
|
||||
serviceName: jellystat-db
|
||||
replicas: 1
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: jellystat-db
|
||||
spec:
|
||||
containers:
|
||||
- name: jellystat-db
|
||||
image: postgres:18-alpine
|
||||
ports:
|
||||
- containerPort: 5432
|
||||
env:
|
||||
- name: POSTGRES_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: jellystat-secret
|
||||
key: password
|
||||
- name: POSTGRES_DB
|
||||
value: "jfstat"
|
||||
- name: POSTGRES_USER
|
||||
value: "postgres"
|
||||
- name: PGDATA
|
||||
value: /mnt/postgres/data
|
||||
volumeMounts:
|
||||
- name: postgres-data
|
||||
mountPath: /mnt/postgres
|
||||
volumeClaimTemplates:
|
||||
- metadata:
|
||||
name: postgres-data
|
||||
spec:
|
||||
accessModes: ["ReadWriteOnce"]
|
||||
resources:
|
||||
requests:
|
||||
storage: 1Gi
|
||||
storageClassName: longhorn
|
||||
Reference in New Issue
Block a user