From 581a186105a82cdd2c9021b580eeb9ed2f5f8d2a Mon Sep 17 00:00:00 2001 From: DeveloperDurp Date: Sat, 19 Nov 2022 09:34:43 -0600 Subject: [PATCH] test --- vault/templates/vault-pv.yaml | 24 ++++++++++++++++++++++++ vault/templates/vault-pvc.yaml | 18 ++++++++++++++++++ vault/values.yaml | 12 +----------- 3 files changed, 43 insertions(+), 11 deletions(-) create mode 100644 vault/templates/vault-pv.yaml create mode 100644 vault/templates/vault-pvc.yaml diff --git a/vault/templates/vault-pv.yaml b/vault/templates/vault-pv.yaml new file mode 100644 index 0000000..70a22b8 --- /dev/null +++ b/vault/templates/vault-pv.yaml @@ -0,0 +1,24 @@ +apiVersion: v1 +kind: PersistentVolume +metadata: + annotations: + pv.kubernetes.io/provisioned-by: durp.info/nfs + finalizers: + - kubernetes.io/pv-protection + name: vault-pv +spec: + accessModes: + - ReadWriteMany + capacity: + storage: 20Gi + claimRef: + apiVersion: v1 + kind: PersistentVolumeClaim + name: vault-pvc + namespace: vault-repository-manager + nfs: + path: /mnt/user/k3s/vault + server: 192.168.20.253 + persistentVolumeReclaimPolicy: Retain + storageClassName: nfs-storage + volumeMode: Filesystem diff --git a/vault/templates/vault-pvc.yaml b/vault/templates/vault-pvc.yaml new file mode 100644 index 0000000..3e82177 --- /dev/null +++ b/vault/templates/vault-pvc.yaml @@ -0,0 +1,18 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + labels: + app.kubernetes.io/component: app + app.kubernetes.io/instance: vault + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/name: vault + helm.sh/chart: vault-2.14.4 + name: vault-pvc + namespace: vault +spec: + accessModes: + - ReadWriteMany + resources: + requests: + storage: 10Gi + storageClassName: nfs-storage \ No newline at end of file diff --git a/vault/values.yaml b/vault/values.yaml index 209d55c..e0e6793 100644 --- a/vault/values.yaml +++ b/vault/values.yaml @@ -452,17 +452,7 @@ vault: # See https://www.vaultproject.io/docs/configuration/storage/index.html to know more dataStorage: enabled: true - # Size of the PVC created - size: 10Gi - # Location where the PVC will be mounted. - mountPath: "/vault/data" - # Name of the storage class to use. If null it will use the - # configured default Storage Class. - storageClass: null - # Access Mode of the storage device being used for the PVC - accessMode: ReadWriteOnce - # Annotations to apply to the PVC - annotations: {} + existingClaim: nexus-pvc # This configures the Vault Statefulset to create a PVC for audit # logs. Once Vault is deployed, initialized, and unsealed, Vault must