Add Outline

This commit is contained in:
2026-06-22 23:32:35 +02:00
parent 62137018ea
commit be9bd3a227
15 changed files with 417 additions and 0 deletions

View File

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