- Namespace `outline` with Postgres 16, Redis 7, and Outline 1.10.0 - Stateful pods pinned to Hetzner location `fsn1` (encrypted CSI volumes) - Pocket ID OIDC integration (group-restricted to outline_admins/outline_members) - Hetzner Object Storage bucket `outline-basicstack` (region hel1) with CORS - Traefik Ingress with cert-manager `letsencrypt-prod` (DNS-01) - Sealed secrets for postgres, app (SECRET_KEY/UTILS_SECRET/URLs), OIDC, S3 - Argo CD Application `outline` in `apps/app-outline.yaml` SMTP notifications deferred (see apps/outline/README.md). Co-Authored-By: Paperclip <noreply@paperclip.ing>
89 lines
1.8 KiB
YAML
89 lines
1.8 KiB
YAML
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: outline-redis
|
|
namespace: outline
|
|
labels:
|
|
app: outline-redis
|
|
spec:
|
|
type: ClusterIP
|
|
selector:
|
|
app: outline-redis
|
|
ports:
|
|
- name: redis
|
|
port: 6379
|
|
targetPort: 6379
|
|
protocol: TCP
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
metadata:
|
|
name: outline-redis
|
|
namespace: outline
|
|
labels:
|
|
app: outline-redis
|
|
spec:
|
|
serviceName: outline-redis
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: outline-redis
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: outline-redis
|
|
spec:
|
|
affinity:
|
|
nodeAffinity:
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
nodeSelectorTerms:
|
|
- matchExpressions:
|
|
- key: csi.hetzner.cloud/location
|
|
operator: In
|
|
values:
|
|
- fsn1
|
|
containers:
|
|
- name: redis
|
|
image: redis:7-alpine
|
|
imagePullPolicy: IfNotPresent
|
|
args:
|
|
- --appendonly
|
|
- "yes"
|
|
- --save
|
|
- "60"
|
|
- "1000"
|
|
ports:
|
|
- name: redis
|
|
containerPort: 6379
|
|
protocol: TCP
|
|
resources:
|
|
requests:
|
|
cpu: 50m
|
|
memory: 64Mi
|
|
limits:
|
|
cpu: 200m
|
|
memory: 256Mi
|
|
readinessProbe:
|
|
exec:
|
|
command: ["redis-cli", "ping"]
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
livenessProbe:
|
|
exec:
|
|
command: ["redis-cli", "ping"]
|
|
initialDelaySeconds: 15
|
|
periodSeconds: 30
|
|
volumeMounts:
|
|
- name: redis-data
|
|
mountPath: /data
|
|
volumeClaimTemplates:
|
|
- metadata:
|
|
name: redis-data
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
storageClassName: hcloud-volumes-encrypted
|
|
resources:
|
|
requests:
|
|
storage: 2Gi
|