Files
gitops/apps/outline/deployment.yaml
2026-01-13 23:17:53 +00:00

72 lines
1.8 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: outline
namespace: outline
labels:
app: outline
spec:
replicas: 1
selector:
matchLabels:
app: outline
template:
metadata:
labels:
app: outline
spec:
containers:
- name: outline
image: outlinewiki/outline:latest
ports:
- containerPort: 3000
envFrom:
- secretRef:
name: outline-secrets
# Outline braucht spezielle Command/Args manchmal nicht, Docker Image hat Entrypoint.
# Wichtig: Outline braucht URL Config.
env:
- name: URL
value: "https://kb.apps.k3s.stabify.de"
- name: PORT
value: "3000"
- name: FORCE_HTTPS
value: "false"
- name: PGSSLMODE
value: "disable"
# S3 / MinIO Configuration
- name: AWS_S3_UPLOAD_BUCKET_URL
value: "https://minio.apps.k3s.stabify.de"
- name: AWS_S3_UPLOAD_BUCKET_NAME
value: "outline-storage"
- name: AWS_S3_FORCE_PATH_STYLE
value: "true" # Wichtig für MinIO
- name: AWS_S3_ACL
value: "private" # Outline managed die Rechte via Presigned URLs
- name: REDIS_COLLABORATION_URL
valueFrom:
secretKeyRef:
name: outline-secrets
key: REDIS_URL # Gleicher Redis
readinessProbe:
httpGet:
path: /
port: 3000
initialDelaySeconds: 10
periodSeconds: 10
---
apiVersion: v1
kind: Service
metadata:
name: outline
namespace: outline
spec:
ports:
- port: 80
targetPort: 3000
protocol: TCP
name: http
selector:
app: outline