diff --git a/templates/beat/deployment.yaml b/templates/beat/deployment.yaml index dc422b8..af9d6cb 100644 --- a/templates/beat/deployment.yaml +++ b/templates/beat/deployment.yaml @@ -60,5 +60,17 @@ spec: name: {{ include "django.fullname" . }} - configMapRef: name: {{ include "django.fullname" . }} + {{- with .Values.beat.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.beat.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.beat.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} {{- end }} {{- end }} diff --git a/values.yaml b/values.yaml index 914127c..db14851 100644 --- a/values.yaml +++ b/values.yaml @@ -103,6 +103,9 @@ worker: beat: enabled: true + nodeSelector: {} + tolerations: [] + affinity: {} serviceAccount: # Specifies whether a service account should be created