diff --git a/apps.yaml b/apps.yaml new file mode 100644 index 0000000..65d1853 --- /dev/null +++ b/apps.yaml @@ -0,0 +1,30 @@ +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/apps" # 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 diff --git a/apps/charts/zerobyte/templates/deployment.yaml b/apps/charts/zerobyte/templates/deployment.yaml index 96d7e31..60618cb 100644 --- a/apps/charts/zerobyte/templates/deployment.yaml +++ b/apps/charts/zerobyte/templates/deployment.yaml @@ -37,6 +37,9 @@ spec: - mountPath: /data/pictures name: pictures readOnly: true + - mountPath: /data/apps + name: apps + readOnly: true volumes: - name: config persistentVolumeClaim: @@ -47,3 +50,6 @@ spec: - name: pictures persistentVolumeClaim: claimName: pictures + - name: apps + persistentVolumeClaim: + claimName: apps-data