Skip to content

Commit de63a74

Browse files
committed
docs(helm): add reclaimPolicy Retain guidance for production database storage
1 parent 972c30f commit de63a74

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

helm/sim/examples/values-azure.yaml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,22 @@ global:
66
imageRegistry: "ghcr.io"
77
# Use "managed-csi-premium" for Premium SSD (requires Premium storage-capable VMs like Standard_DS*)
88
# Use "managed-csi" for Standard SSD (works with all VM types)
9+
#
10+
# IMPORTANT: For production database workloads, create a StorageClass with reclaimPolicy: Retain
11+
# to protect volumes from accidental deletion (e.g., kubectl delete namespace):
12+
#
13+
# apiVersion: storage.k8s.io/v1
14+
# kind: StorageClass
15+
# metadata:
16+
# name: managed-csi-premium-retain
17+
# provisioner: disk.csi.azure.com
18+
# parameters:
19+
# skuname: Premium_LRS
20+
# reclaimPolicy: Retain
21+
# volumeBindingMode: WaitForFirstConsumer
22+
# allowVolumeExpansion: true
23+
#
24+
# Then use: storageClass: "managed-csi-premium-retain"
925
storageClass: "managed-csi"
1026

1127
# Main application
@@ -113,9 +129,10 @@ postgresql:
113129
cpu: "500m"
114130

115131
# Persistent storage using Azure Managed Disk
132+
# For production, use a StorageClass with reclaimPolicy: Retain (see global.storageClass comment)
116133
persistence:
117134
enabled: true
118-
storageClass: "managed-csi"
135+
storageClass: "managed-csi-premium-retain"
119136
size: 10Gi
120137

121138
# SSL/TLS configuration (requires cert-manager to be installed)

helm/sim/examples/values-production.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
# Production values for Sim
22
# This configuration is suitable for production deployments
3+
#
4+
# IMPORTANT: For database volumes, use a StorageClass with reclaimPolicy: Retain
5+
# to protect data from accidental deletion. The default "Delete" policy will
6+
# destroy the underlying disk when a PVC is deleted (including via namespace deletion).
37

48
# Global configuration
59
global:
610
imageRegistry: "ghcr.io"
11+
# Use a StorageClass with reclaimPolicy: Retain for production database workloads
712
storageClass: "managed-csi-premium"
813

914
# Main application

0 commit comments

Comments
 (0)