From 486a4b58e669bcc03c38c9dc15c12af728c127f2 Mon Sep 17 00:00:00 2001 From: majinghe <42570491+majinghe@users.noreply.github.com> Date: Sun, 4 Jan 2026 20:49:58 +0800 Subject: [PATCH] add node selector for standalone deployment (#1368) --- helm/rustfs/templates/deployment.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/helm/rustfs/templates/deployment.yaml b/helm/rustfs/templates/deployment.yaml index 7a84c588..fec9db71 100644 --- a/helm/rustfs/templates/deployment.yaml +++ b/helm/rustfs/templates/deployment.yaml @@ -25,6 +25,10 @@ spec: imagePullSecrets: {{- . | nindent 8 }} {{- end }} + {{- if and .Values.nodeSelector (not .Values.affinity.nodeAffinity) }} + nodeSelector: + {{- toYaml .Values.nodeSelector | nindent 8 }} + {{- end }} {{- if .Values.affinity }} affinity: {{- if .Values.affinity.nodeAffinity }}