Files
k3s-homelab/apps/planka/planka-deployment.yaml
T
2026-11-11 19:49:06 -07:00

86 lines
2.1 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: planka
namespace: wedding-planner
spec:
replicas: 1
# The attachment PVC is ReadWriteOnce; ensure upgrades never overlap pods.
strategy:
type: Recreate
selector:
matchLabels:
app: planka
template:
metadata:
labels:
app: planka
spec:
securityContext:
runAsNonRoot: true
runAsUser: 1000
runAsGroup: 1000
fsGroup: 1000
fsGroupChangePolicy: OnRootMismatch
seccompProfile:
type: RuntimeDefault
containers:
- name: planka
image: ghcr.io/plankanban/planka:2.3.1
ports:
- name: http
containerPort: 1337
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
env:
- name: BASE_URL
value: https://wedding.aleshym.co
- name: DATABASE_URL
valueFrom:
secretKeyRef:
name: planka-secret
key: DATABASE_URL
- name: SECRET_KEY
valueFrom:
secretKeyRef:
name: planka-secret
key: SECRET_KEY
- name: TRUST_PROXY
value: "true"
volumeMounts:
- name: data
mountPath: /app/data
startupProbe:
httpGet:
path: /
port: http
failureThreshold: 60
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: 100m
memory: 256Mi
limits:
cpu: 1
memory: 1Gi
volumes:
- name: data
persistentVolumeClaim:
claimName: planka-data