Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion helm/sim/examples/values-azure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,22 @@ global:
imageRegistry: "ghcr.io"
# Use "managed-csi-premium" for Premium SSD (requires Premium storage-capable VMs like Standard_DS*)
# Use "managed-csi" for Standard SSD (works with all VM types)
#
# IMPORTANT: For production database workloads, create a StorageClass with reclaimPolicy: Retain
# to protect volumes from accidental deletion (e.g., kubectl delete namespace):
#
# apiVersion: storage.k8s.io/v1
# kind: StorageClass
# metadata:
# name: managed-csi-premium-retain
# provisioner: disk.csi.azure.com
# parameters:
# skuname: Premium_LRS
# reclaimPolicy: Retain
# volumeBindingMode: WaitForFirstConsumer
# allowVolumeExpansion: true
#
# Then use: storageClass: "managed-csi-premium-retain"
storageClass: "managed-csi"

# Main application
Expand Down Expand Up @@ -113,9 +129,10 @@ postgresql:
cpu: "500m"

# Persistent storage using Azure Managed Disk
# For production, use a StorageClass with reclaimPolicy: Retain (see global.storageClass comment)
persistence:
enabled: true
storageClass: "managed-csi"
storageClass: "managed-csi-premium-retain"
Comment thread
waleedlatif1 marked this conversation as resolved.
Outdated
size: 10Gi

# SSL/TLS configuration (requires cert-manager to be installed)
Expand Down
5 changes: 5 additions & 0 deletions helm/sim/examples/values-production.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
# Production values for Sim
# This configuration is suitable for production deployments
#
# IMPORTANT: For database volumes, use a StorageClass with reclaimPolicy: Retain
# to protect data from accidental deletion. The default "Delete" policy will
# destroy the underlying disk when a PVC is deleted (including via namespace deletion).

# Global configuration
global:
imageRegistry: "ghcr.io"
# Use a StorageClass with reclaimPolicy: Retain for production database workloads
Comment thread
waleedlatif1 marked this conversation as resolved.
Outdated
storageClass: "managed-csi-premium"

# Main application
Expand Down
6 changes: 3 additions & 3 deletions helm/sim/templates/certificate-postgresql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ spec:
duration: {{ .Values.postgresql.tls.duration | default "87600h" }} # Default: 10 years
renewBefore: {{ .Values.postgresql.tls.renewBefore | default "2160h" }} # Default: 90 days before expiry
isCA: false
{{- if .Values.postgresql.tls.rotationPolicy }}
rotationPolicy: {{ .Values.postgresql.tls.rotationPolicy }}
{{- end }}
privateKey:
algorithm: {{ .Values.postgresql.tls.privateKey.algorithm | default "RSA" }}
size: {{ .Values.postgresql.tls.privateKey.size | default 4096 }}
{{- if .Values.postgresql.tls.rotationPolicy }}
rotationPolicy: {{ .Values.postgresql.tls.rotationPolicy }}
{{- end }}
usages:
- server auth
- client auth
Expand Down