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 }}