Skip to content

Commit

Permalink
Add moon2 topologySpreadConstraints.
Browse files Browse the repository at this point in the history
  • Loading branch information
aandryashin committed Oct 25, 2023
1 parent 681a7d5 commit 849293d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions moon2/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 -}}
Expand Down
5 changes: 5 additions & 0 deletions moon2/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,11 @@ deployment:
##
terminationGracePeriodSeconds:

##
## Moon pods topologySpreadConstraints.
##
topologySpreadConstraints:

##
## Moon container image repository. Default is quay.io/aerokube/moon.
##
Expand Down

0 comments on commit 849293d

Please sign in to comment.