add Pelican panel manifests

This commit is contained in:
2026-06-07 00:51:34 +02:00
parent 86fbf4947c
commit a64516a56a
8 changed files with 206 additions and 0 deletions

55
pelican/postgres.yaml Normal file
View File

@@ -0,0 +1,55 @@
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: pelican-postgres
namespace: pelican
spec:
replicas: 1
selector:
matchLabels:
app: pelican-postgres
serviceName: pelican-postgres
template:
metadata:
labels:
app: pelican-postgres
spec:
restartPolicy: Always
terminationGracePeriodSeconds: 60
containers:
- name: postgres
image: postgres:17-alpine
resources:
requests:
cpu: 100m
memory: 256Mi
limits:
cpu: 500m
memory: 512Mi
ports:
- containerPort: 5432
volumeMounts:
- name: pelican-postgres-data
mountPath: /var/lib/postgresql/data
env:
- name: PGDATA
value: /var/lib/postgresql/data/pgdata
- name: POSTGRES_USER
valueFrom:
secretKeyRef:
name: pelican-secrets
key: DB_USERNAME
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: pelican-secrets
key: DB_PASSWORD
- name: POSTGRES_DB
valueFrom:
secretKeyRef:
name: pelican-secrets
key: DB_DATABASE
volumes:
- name: pelican-postgres-data
persistentVolumeClaim:
claimName: pelican-postgres-pvc