Files
k3s-homelab/apps/wekan/wekan-deployment.yaml
T
2026-11-11 20:24:08 -07:00

104 lines
2.7 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: wekan
namespace: wedding-planner
spec:
replicas: 1
# SQLite-backed FerretDB and uploads share one ReadWriteOnce claim.
strategy:
type: Recreate
selector:
matchLabels:
app: wekan
template:
metadata:
labels:
app: wekan
spec:
securityContext:
runAsNonRoot: true
runAsUser: 999
runAsGroup: 999
fsGroup: 999
fsGroupChangePolicy: OnRootMismatch
seccompProfile:
type: RuntimeDefault
initContainers:
- name: wait-for-ferretdb
image: ghcr.io/wekan/wekan:v13.06
command:
- bash
- -ec
- until (echo > /dev/tcp/ferretdb/27017) >/dev/null 2>&1; do sleep 2; done
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
containers:
- name: wekan
image: ghcr.io/wekan/wekan:v13.06
ports:
- name: http
containerPort: 8080
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
env:
- name: ROOT_URL
value: https://wedding.aleshym.co
- name: PORT
value: "8080"
- name: WEKAN_DB
value: mongodb
- name: MONGO_URL
value: mongodb://ferretdb:27017/wekan?directConnection=true
- name: WRITABLE_PATH
value: /data
- name: METEOR_REACTIVITY_ORDER
value: polling
- name: DEFAULT_METEOR_REACTIVITY_ORDER
value: polling
- name: WITH_API
value: "true"
- name: DDP_TRANSPORT
value: sockjs
- name: BROWSER_POLICY_ENABLED
value: "true"
volumeMounts:
- name: data
mountPath: /data
startupProbe:
httpGet:
path: /
port: http
failureThreshold: 90
periodSeconds: 10
timeoutSeconds: 5
readinessProbe:
httpGet:
path: /
port: http
periodSeconds: 10
timeoutSeconds: 5
livenessProbe:
httpGet:
path: /
port: http
periodSeconds: 20
timeoutSeconds: 5
resources:
requests:
cpu: 200m
memory: 512Mi
limits:
cpu: 1
memory: 1Gi
volumes:
- name: data
persistentVolumeClaim:
claimName: wekan-data