Add new configuration and scripts to automate the credential creation and passing...
[it/dep.git] / ric-infra / 10-Nexus / helm / templates / persistentVolume.yaml
diff --git a/ric-infra/10-Nexus/helm/templates/persistentVolume.yaml b/ric-infra/10-Nexus/helm/templates/persistentVolume.yaml
new file mode 100644 (file)
index 0000000..dfdbd21
--- /dev/null
@@ -0,0 +1,21 @@
+apiVersion: v1
+kind: PersistentVolume
+metadata:
+  name: nexus3-configuration
+spec:
+  capacity:
+    storage: {{ .Values.storagesize }}
+  accessModes:
+  - ReadWriteOnce
+  persistentVolumeReclaimPolicy: Retain
+  storageClassName: nexus3-storage
+  local:
+    path: {{ .Values.datapath }}
+  nodeAffinity:
+    required:
+      nodeSelectorTerms:
+      - matchExpressions:
+        - key: nexus-node
+          operator: In
+          values:
+          - enable