FEAT(cnpg): add local-path-retain StorageClass

- for CNPG data protection
This commit is contained in:
2025-12-31 23:52:03 +09:00
parent 781977b659
commit 2b315deac5
3 changed files with 12 additions and 2 deletions

View File

@@ -9,6 +9,9 @@ resources:
- vault/superuser-secret.yaml
# - vault/backup-s3-secret.yaml # Disabled - using Velero instead
# StorageClass with Retain policy
- manifests/storageclass.yaml
# CNPG Cluster
- manifests/cluster.yaml

View File

@@ -10,9 +10,9 @@ spec:
# Number of instances
instances: 3 # 1 primary + 2 replicas for HA
# Storage configuration - using local-path
# Storage configuration - using local-path-retain for data protection
storage:
storageClass: local-path
storageClass: local-path-retain
size: 10Gi
# Resource requests and limits

View File

@@ -0,0 +1,7 @@
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: local-path-retain
provisioner: rancher.io/local-path
reclaimPolicy: Retain
volumeBindingMode: WaitForFirstConsumer