Add data pvc to homarr
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Tyler Perkins 2023-12-08 17:12:18 -05:00
parent 0b3d4bb537
commit f76391839a
Signed by: tyler
GPG Key ID: 03B27509E17EFDC8
2 changed files with 18 additions and 1 deletions

View File

@ -15,7 +15,7 @@ spec:
spec: spec:
containers: containers:
- name: homarr - name: homarr
image: ghcr.io/ajnart/homarr:v0.13.4 image: ghcr.io/ajnart/homarr:latest
ports: ports:
- containerPort: 7575 - containerPort: 7575
env: env:
@ -29,6 +29,8 @@ spec:
mountPath: /app/data/configs mountPath: /app/data/configs
- name: homarr-icons - name: homarr-icons
mountPath: /app/public/icons mountPath: /app/public/icons
- name: homarr-data
mountPath: /data
volumes: volumes:
- name: homarr-config - name: homarr-config
persistentVolumeClaim: persistentVolumeClaim:
@ -36,3 +38,6 @@ spec:
- name: homarr-icons - name: homarr-icons
persistentVolumeClaim: persistentVolumeClaim:
claimName: homarr-icons-pvc claimName: homarr-icons-pvc
- name: homarr-data
persistentVolumeClaim:
claimName: homarr-data-pvc

View File

@ -0,0 +1,12 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: homarr-data-pvc
namespace: homarr-ns
spec:
storageClassName: longhorn
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi