--- # Crafty data PVC (R-STATE-01/02) — the SINGLE stateful volume behind Crafty Controller. Crafty runs # every Minecraft server it creates as a SUBPROCESS inside its own container, so all server worlds, # backups, imports, logs and Crafty's own SQLite config/DB live under /crafty and must persist across # pod restarts. This one Longhorn RWO volume is mounted five times by subPath (deployment.yaml) to the # exact directories Crafty's docker-compose maps (/crafty/servers, /crafty/backups, /crafty/logs, # /crafty/import, /crafty/app/config). # # Sized 20Gi for a starter set of small worlds + rolling backups; expand via the Longhorn # allowVolumeExpansion storage class when real worlds grow. Replicated on the Longhorn 3-replica tier # (docs/04). fsGroup/root-group ownership so the non-root `crafty` user can write — see deployment.yaml. apiVersion: v1 kind: PersistentVolumeClaim metadata: name: crafty-data namespace: crafty labels: app.kubernetes.io/name: crafty spec: accessModes: - ReadWriteOnce storageClassName: longhorn resources: requests: storage: 20Gi