|
|
@@ -170,3 +170,15 @@ spec:
|
|
|
tolerations:
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
{{- end }}
|
|
|
+ {{- with .Values.topologySpreadConstraints }}
|
|
|
+ topologySpreadConstraints:
|
|
|
+ {{- range . }}
|
|
|
+ - maxSkew: {{ .maxSkew }}
|
|
|
+ topologyKey: {{ .topologyKey }}
|
|
|
+ whenUnsatisfiable: {{ .whenUnsatisfiable }}
|
|
|
+ labelSelector:
|
|
|
+ matchLabels:
|
|
|
+ app.kubernetes.io/name: {{ include "emqx.name" $ }}
|
|
|
+ app.kubernetes.io/instance: {{ $.Release.Name }}
|
|
|
+ {{- end }}
|
|
|
+ {{- end }}
|