63 lines
1.4 KiB
YAML
63 lines
1.4 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"
|
|
- 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
|