FEAT(cnpg): add local-path-retain StorageClass
- for CNPG data protection
This commit is contained in:
@@ -9,6 +9,9 @@ resources:
|
|||||||
- vault/superuser-secret.yaml
|
- vault/superuser-secret.yaml
|
||||||
# - vault/backup-s3-secret.yaml # Disabled - using Velero instead
|
# - vault/backup-s3-secret.yaml # Disabled - using Velero instead
|
||||||
|
|
||||||
|
# StorageClass with Retain policy
|
||||||
|
- manifests/storageclass.yaml
|
||||||
|
|
||||||
# CNPG Cluster
|
# CNPG Cluster
|
||||||
- manifests/cluster.yaml
|
- manifests/cluster.yaml
|
||||||
|
|
||||||
|
|||||||
@@ -10,9 +10,9 @@ spec:
|
|||||||
# Number of instances
|
# Number of instances
|
||||||
instances: 3 # 1 primary + 2 replicas for HA
|
instances: 3 # 1 primary + 2 replicas for HA
|
||||||
|
|
||||||
# Storage configuration - using local-path
|
# Storage configuration - using local-path-retain for data protection
|
||||||
storage:
|
storage:
|
||||||
storageClass: local-path
|
storageClass: local-path-retain
|
||||||
size: 10Gi
|
size: 10Gi
|
||||||
|
|
||||||
# Resource requests and limits
|
# Resource requests and limits
|
||||||
|
|||||||
7
postgresql/manifests/storageclass.yaml
Normal file
7
postgresql/manifests/storageclass.yaml
Normal 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
|
||||||
Reference in New Issue
Block a user