mirror of
https://github.com/morten-olsen/homelab-apps.git
synced 2026-02-08 01:36:28 +01:00
add apps to zerobyte
This commit is contained in:
30
apps.yaml
Normal file
30
apps.yaml
Normal file
@@ -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
|
||||||
@@ -37,6 +37,9 @@ spec:
|
|||||||
- mountPath: /data/pictures
|
- mountPath: /data/pictures
|
||||||
name: pictures
|
name: pictures
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
- mountPath: /data/apps
|
||||||
|
name: apps
|
||||||
|
readOnly: true
|
||||||
volumes:
|
volumes:
|
||||||
- name: config
|
- name: config
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
@@ -47,3 +50,6 @@ spec:
|
|||||||
- name: pictures
|
- name: pictures
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: pictures
|
claimName: pictures
|
||||||
|
- name: apps
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: apps-data
|
||||||
|
|||||||
Reference in New Issue
Block a user