apiVersion: v1 | |
kind: PersistentVolume | |
metadata: | |
name: pv-{{ include "common.name.nexus" . }} | |
spec: | |
capacity: | |
storage: {{ .Values.nexus.storagesize }} | |
accessModes: | |
- ReadWriteOnce | |
persistentVolumeReclaimPolicy: Retain | |
storageClassName: storageclass-{{ include "common.name.nexus" . }} | |
local: | |
path: {{ .Values.nexus.datapath }} | |
nodeAffinity: | |
required: | |
nodeSelectorTerms: | |
- matchExpressions: | |
- key: nexus-node | |
operator: In | |
values: | |
- enable |