adding nas config
This commit is contained in:
parent
2ac0d44c14
commit
a19074d204
4 changed files with 42 additions and 0 deletions
|
@ -30,6 +30,13 @@ spec:
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /config
|
- mountPath: /config
|
||||||
name: config
|
name: config
|
||||||
|
- mountPath: /data
|
||||||
|
name: nas
|
||||||
|
envFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: nas-secret
|
||||||
|
- configMapRef:
|
||||||
|
name: nas-configmap
|
||||||
volumeClaimTemplates:
|
volumeClaimTemplates:
|
||||||
- metadata:
|
- metadata:
|
||||||
name: config
|
name: config
|
||||||
|
@ -39,3 +46,8 @@ spec:
|
||||||
requests:
|
requests:
|
||||||
storage: 5Gi
|
storage: 5Gi
|
||||||
storageClassName: longhorn
|
storageClassName: longhorn
|
||||||
|
volumes:
|
||||||
|
- name: nas
|
||||||
|
nfs:
|
||||||
|
path: ${EXPORT_PATH}
|
||||||
|
server: ${NAS_SERVER}
|
||||||
|
|
6
configmaps/nas-configmap.yaml
Normal file
6
configmaps/nas-configmap.yaml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: nas-configmap
|
||||||
|
data:
|
||||||
|
exportPath: /mnt/thePool/thePoolShare
|
13
storage/volumes/nas-pv.yaml
Normal file
13
storage/volumes/nas-pv.yaml
Normal 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
|
11
storage/volumes/nas-pvc.yaml
Normal file
11
storage/volumes/nas-pvc.yaml
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: nas-pvc
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteMany
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 30Gi
|
||||||
|
volumeName: nas-pv
|
Loading…
Reference in a new issue