adding nas config

This commit is contained in:
Matt Reeves 2024-07-03 21:40:55 -04:00
parent 2ac0d44c14
commit a19074d204
4 changed files with 42 additions and 0 deletions

View file

@ -30,6 +30,13 @@ spec:
volumeMounts:
- mountPath: /config
name: config
- mountPath: /data
name: nas
envFrom:
- secretRef:
name: nas-secret
- configMapRef:
name: nas-configmap
volumeClaimTemplates:
- metadata:
name: config
@ -39,3 +46,8 @@ spec:
requests:
storage: 5Gi
storageClassName: longhorn
volumes:
- name: nas
nfs:
path: ${EXPORT_PATH}
server: ${NAS_SERVER}

View file

@ -0,0 +1,6 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: nas-configmap
data:
exportPath: /mnt/thePool/thePoolShare

View file

@ -0,0 +1,13 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: nas-pv
spec:
capacity:
storage: 12Ti
accessModes:
- ReadWriteMany
nfs:
path: /mnt/thePool/thePoolShare
server: ${NAS_SERVER}
persistentVolumeReclaimPolicy: Retain

View file

@ -0,0 +1,11 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: nas-pvc
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 30Gi
volumeName: nas-pv