diff --git a/helm/m3db-operator/templates/stateful_set.yaml b/helm/m3db-operator/templates/stateful_set.yaml index e4ed336..b57105d 100644 --- a/helm/m3db-operator/templates/stateful_set.yaml +++ b/helm/m3db-operator/templates/stateful_set.yaml @@ -28,3 +28,7 @@ spec: - name: ENVIRONMENT value: {{ .Values.environment }} serviceAccount: {{ .Values.operator.name }} + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} diff --git a/helm/m3db-operator/values.yaml b/helm/m3db-operator/values.yaml index b0b6448..7d1b7e9 100644 --- a/helm/m3db-operator/values.yaml +++ b/helm/m3db-operator/values.yaml @@ -4,3 +4,4 @@ image: repository: quay.io/m3db/m3db-operator tag: v0.14.0 environment: production +affinity: {} \ No newline at end of file