Files
apps/apps.yaml
Morten Olsen 5773f147b1 add blinko
2025-12-08 22:15:00 +01:00

31 lines
766 B
YAML

apiVersion: v1
kind: PersistentVolume
metadata:
name: apps-data
labels:
type: local
spec:
capacity:
storage: 5Gi # Adjust this to your desired size
accessModes:
- ReadWriteMany
persistentVolumeReclaimPolicy: Retain # Retain the data even if the PV is deleted
storageClassName: "manual-app-data"
hostPath:
path: "/data/volumes" # The specific host path for your 'apps' volume
type: DirectoryOrCreate # Ensures the directory exists on the host
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: apps-data
namespace: prod # Specify the namespace
spec:
storageClassName: "manual-app-data"
accessModes:
- ReadWriteMany
resources:
requests:
storage: 5Gi # Must match or be less than the PV's capacity