k3s/services/foundryvtt/foundry-vtt-deployment.yaml
2026-06-13 11:05:56 -04:00

58 lines
1.4 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: foundry-vtt
spec:
replicas: 1
selector:
matchLabels:
app: foundry-vtt
strategy:
type: Recreate
template:
metadata:
labels:
app: foundry-vtt
spec:
containers:
- name: foundry-vtt
image: felddy/foundryvtt:latest
ports:
- containerPort: 30000
protocol: TCP
name: web-ui
envFrom:
- secretRef:
name: foundry-vtt-secret
env:
- name: FOUNDRY_MINIFY_STATIC_FILES
value: "true"
- name: FOUNDRY_HOSTNAME
value: "foundry.mynest.love"
- name: FOUNDRY_PROXY_PORT
value: "443"
- name: FOUNDRY_PROXY_SSL
value: "true"
volumeMounts:
- mountPath: /data
name: foundry-vtt-volume
restartPolicy: Always
volumes:
- name: foundry-vtt-volume
persistentVolumeClaim:
claimName: foundry-vtt-data-pvc
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: foundry-vtt-data-pvc
labels:
recurring-job.longhorn.io/source: "enabled"
recurring-job-group.longhorn.io/app-config-group: "enabled"
spec:
accessModes:
- ReadWriteOnce
storageClassName: longhorn
resources:
requests:
storage: 10Gi