From 5d92f243480541ab7ebe7b14198d33864a73e133 Mon Sep 17 00:00:00 2001 From: Jim Nicholson Date: Mon, 5 Dec 2022 02:50:20 -0800 Subject: [PATCH] Add nfs storage claim --- volume.yaml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/volume.yaml b/volume.yaml index 80cb233..44ae9c8 100644 --- a/volume.yaml +++ b/volume.yaml @@ -1,5 +1,25 @@ --- apiVersion: v1 +kind: PersistentVolume +metadata: + name: heimdall-pv + namespace: heimdall + labels: + app: heimdall +spec: + storageClassName: "local-path" + capacity: + storage: 5Gi + accessModes: + - ReadWriteOnce + persistentVolumeReclaimPolicy: Retain + mountOptions: + - nolock + nfs: + server: 10.0.96.14 + path: "/mnt/data/heimdall-config" +--- +apiVersion: v1 kind: PersistentVolumeClaim metadata: name: heimdall-claim @@ -11,3 +31,19 @@ spec: resources: requests: storage: 5Gi + +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: heimdall-storage + namespace: heimdall + annotations: +spec: + storageClassName: "local-path" + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 5Gi + volumeName: heimdall-pv \ No newline at end of file