diff --git a/tinkerbell/smee/templates/deployment.yaml b/tinkerbell/smee/templates/deployment.yaml index 4b558ac2..0f0c1fe3 100644 --- a/tinkerbell/smee/templates/deployment.yaml +++ b/tinkerbell/smee/templates/deployment.yaml @@ -120,9 +120,17 @@ spec: {{- if .Values.hostNetwork }} hostNetwork: true {{- end }} - {{- if .Values.singleNodeClusterConfig.controlPlaneTolerationsEnabled }} + {{- if or .Values.deployment.tolerations .Values.singleNodeClusterConfig.controlPlaneTolerationsEnabled }} tolerations: + {{- .Values.deployment.tolerations | toYaml | nindent 8 }} + {{- if .Values.singleNodeClusterConfig.controlPlaneTolerationsEnabled }} {{- include "singleNodeClusterConfig" . | indent 6 }} + {{- end }} + {{- end }} + {{- if .Values.deployment.affinity }} + affinity: + {{- .Values.deployment.affinity | toYaml | nindent 8 }} + {{- else if .Values.singleNodeClusterConfig.controlPlaneTolerationsEnabled }} affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: diff --git a/tinkerbell/smee/values.yaml b/tinkerbell/smee/values.yaml index 05eb8feb..762abafe 100644 --- a/tinkerbell/smee/values.yaml +++ b/tinkerbell/smee/values.yaml @@ -23,6 +23,8 @@ resources: deployment: strategy: type: RollingUpdate + tolerations: [] + affinity: {} # The log level for the container. logLevel: "info"