diff --git a/moon2/templates/deployment.yaml b/moon2/templates/deployment.yaml index e03f307..5464aaa 100644 --- a/moon2/templates/deployment.yaml +++ b/moon2/templates/deployment.yaml @@ -32,6 +32,12 @@ spec: labels: app: {{ .Release.Name }} spec: + {{- if .Values.deployment -}} + {{- with .Values.deployment.topologySpreadConstraints }} + topologySpreadConstraints: + {{ toYaml . | nindent 8 }} + {{- end }} + {{- end }} serviceAccountName: {{ .Release.Name }} terminationGracePeriodSeconds: {{ $def := 360 -}} {{- if .Values.deployment -}} diff --git a/moon2/values.yaml b/moon2/values.yaml index ed5135d..6a9f91b 100644 --- a/moon2/values.yaml +++ b/moon2/values.yaml @@ -146,6 +146,11 @@ deployment: ## terminationGracePeriodSeconds: + ## + ## Moon pods topologySpreadConstraints. + ## + topologySpreadConstraints: + ## ## Moon container image repository. Default is quay.io/aerokube/moon. ##