From 5cdf1ad970fadd111a42e3350ccd61b441b52f4a Mon Sep 17 00:00:00 2001 From: Robert Cook Date: Tue, 5 May 2026 13:18:13 +0100 Subject: [PATCH] Add nodeselector, affinity, and toleration configuration options to the helm chart This change allows users to optionally define nodeselector, affinity, and/or toleration options to their deployments via helm values. This allows users to better distribute their PDP deployments across their node pools. The default values for each are empty, ensuring this change does not affect existing deployments. --- charts/pdp/templates/deployment.yaml | 12 ++++++++++++ charts/pdp/values.yaml | 3 +++ 2 files changed, 15 insertions(+) diff --git a/charts/pdp/templates/deployment.yaml b/charts/pdp/templates/deployment.yaml index 214cea11..ce9293ab 100644 --- a/charts/pdp/templates/deployment.yaml +++ b/charts/pdp/templates/deployment.yaml @@ -155,3 +155,15 @@ spec: - name: opa-volume emptyDir: {} {{- end }} + {{- with .Values.pdp.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.pdp.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.pdp.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} diff --git a/charts/pdp/values.yaml b/charts/pdp/values.yaml index 49aebdf7..38e1e973 100644 --- a/charts/pdp/values.yaml +++ b/charts/pdp/values.yaml @@ -42,6 +42,9 @@ pdp: port: 443 index: "" debug_mode: false + nodeSelector: {} + tolerations: [] + affinity: {} podDisruptionBudget: # Automatically enabled when replicas > 1