X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ric-aux%2F80-Auxiliary-Functions%2Fhelm%2Fdashboard%2Ftemplates%2FpersistentVolume.yaml;fp=ric-aux%2F80-Auxiliary-Functions%2Fhelm%2Fdashboard%2Ftemplates%2FpersistentVolume.yaml;h=cb63ba9d6c983f6a71a9d5549510f3cc2eeaa792;hb=8c686e8dbc613353518fd823240d6bf17ad6d0a7;hp=0000000000000000000000000000000000000000;hpb=131bbe820a984e506160c609e2c85c473f67806d;p=it%2Fdep.git diff --git a/ric-aux/80-Auxiliary-Functions/helm/dashboard/templates/persistentVolume.yaml b/ric-aux/80-Auxiliary-Functions/helm/dashboard/templates/persistentVolume.yaml new file mode 100644 index 00000000..cb63ba9d --- /dev/null +++ b/ric-aux/80-Auxiliary-Functions/helm/dashboard/templates/persistentVolume.yaml @@ -0,0 +1,22 @@ +# Remove this persistent volume when cloud storage is available +apiVersion: v1 +kind: PersistentVolume +metadata: + name: pv-{{ include "common.name.dashboard" . }} +spec: + capacity: + storage: {{ .Values.dashboard.storagesize }} + accessModes: + - ReadWriteOnce + persistentVolumeReclaimPolicy: Retain + storageClassName: storageclass-{{ include "common.name.dashboard" . }} + local: + path: {{ .Values.dashboard.datapath }} + nodeAffinity: + required: + nodeSelectorTerms: + - matchExpressions: + - key: dashboard-node + operator: In + values: + - enable