Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Revert "Revert "feat(helm-charts/infiscal-core): topologySpreadConstraints support""

Maidul Islam68357b5669f8
diff --git a/helm-charts/infisical-standalone-postgres/CHANGELOG.md b/helm-charts/infisical-standalone-postgres/CHANGELOG.md
index ee80eb6b57..1a9c454853 100644
--- a/helm-charts/infisical-standalone-postgres/CHANGELOG.md
+++ b/helm-charts/infisical-standalone-postgres/CHANGELOG.md
@@ -1,3 +1,11 @@
+## 1.5.1 (July 3, 2025)
+
+Changes:
+* Added support for `topologySpreadConstraints` configuration in Helm chart
+
+Features:
+* `topologySpreadConstraints`: Configure pod distribution across availability zones and nodes for high availability
+
## 1.5.0 (March 26, 2025)
Changes:
diff --git a/helm-charts/infisical-standalone-postgres/templates/infisical.yaml b/helm-charts/infisical-standalone-postgres/templates/infisical.yaml
index 52321a9d68..11ebb8f3d2 100644
--- a/helm-charts/infisical-standalone-postgres/templates/infisical.yaml
+++ b/helm-charts/infisical-standalone-postgres/templates/infisical.yaml
@@ -25,6 +25,10 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
+ {{- with $infisicalValues.topologySpreadConstraints }}
+ topologySpreadConstraints:
+ {{- toYaml . | nindent 8 }}
+ {{- end }}
{{- with $infisicalValues.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
diff --git a/helm-charts/infisical-standalone-postgres/values.yaml b/helm-charts/infisical-standalone-postgres/values.yaml
index d2e3297d50..32b7a8d6fe 100644
--- a/helm-charts/infisical-standalone-postgres/values.yaml
+++ b/helm-charts/infisical-standalone-postgres/values.yaml
@@ -80,6 +80,10 @@ infisical:
tolerations: []
# -- Node selector for pod placement
nodeSelector: {}
+ # -- Topology spread constraints for multi-zone deployments
+ # -- Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
+ topologySpreadConstraints: []
+
# -- Kubernetes Secret reference containing Infisical root credentials
kubeSecretRef: "infisical-secrets"