Skip to content

Commit b665473

Browse files
committed
helm charts for vault manifest
1 parent d7fb533 commit b665473

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

helm/vault/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,4 @@ spec:
7575
defaultMode: 0644
7676
- name: vault-data
7777
persistentVolumeClaim:
78-
claimName: vault-pvc
78+
claimName: {{ .Values.persistence.existingClaim | default "vault-pvc" }}

helm/vault/templates/pvc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if .Values.persistence.enabled }}
1+
{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) }}
22
apiVersion: v1
33
kind: PersistentVolumeClaim
44
metadata:

helm/vault/values.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Custom values for existing PVC deployment
2+
13
# Namespace configuration
24
namespace: vault
35

@@ -23,13 +25,11 @@ service:
2325
targetPort: 8200
2426
protocol: TCP
2527

26-
# Storage configuration
28+
# Storage configuration - USE EXISTING PVC
2729
persistence:
2830
enabled: true
29-
storageClassName: "standard"
30-
size: "0.5Gi"
31-
accessModes:
32-
- ReadWriteOnce
31+
existingClaim: "vault-pvc" # Use existing PVC instead of creating new
32+
# Remove storageClassName, size, and accessModes since we're using existing PVC
3333

3434
# Vault configuration
3535
config:

0 commit comments

Comments
 (0)