k3s/services/windmill/windmill-deployment.yaml
2026-07-24 18:33:23 -04:00

66 lines
1.5 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: windmill-server
annotations:
keel.sh/policy: "all"
keel.sh/match-tag: "true"
keel.sh/schedule: "0 3 * * *"
spec:
replicas: 1
selector:
matchLabels:
app: windmill-server
template:
metadata:
labels:
app: windmill-server
spec:
nodeSelector:
kubernetes.io/arch: amd64
containers:
- name: server
image: ghcr.io/windmill-labs/windmill:latest
env:
- name: MODE
value: "standalone"
- name: BASE_URL
value: "http://windmill.k3s.home.nest"
- name: DATABASE_URL
valueFrom:
secretKeyRef:
name: windmill-secret
key: DATABASE_URL
ports:
- containerPort: 8000
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: windmill-postgres
spec:
replicas: 1
selector:
matchLabels:
app: windmill-postgres
template:
metadata:
labels:
app: windmill-postgres
spec:
containers:
- name: postgres
image: postgres:16-alpine
ports:
- containerPort: 5432
envFrom:
- secretRef:
name: windmill-secret
volumeMounts:
- name: postgres-storage
mountPath: /var/lib/postgresql/data
subPath: windmill-data
volumes:
- name: postgres-storage
persistentVolumeClaim:
claimName: windmill-postgres-pvc