mirror of
https://github.com/mastodon/chart
synced 2025-03-15 13:31:51 +00:00
Add topology spread constraints
This commit is contained in:
parent
905f78fd72
commit
6d5a6004e3
|
@ -56,6 +56,10 @@ spec:
|
||||||
affinity:
|
affinity:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- with (default (default $context.Values.topologySpreadConstraints $context.Values.mastodon.sidekiq.topologySpreadConstraints) .topologySpreadConstraints) }}
|
||||||
|
topologySpreadConstraints:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
{{- if (not $context.Values.mastodon.s3.enabled) }}
|
{{- if (not $context.Values.mastodon.s3.enabled) }}
|
||||||
volumes:
|
volumes:
|
||||||
- name: assets
|
- name: assets
|
||||||
|
|
|
@ -87,6 +87,10 @@ spec:
|
||||||
affinity:
|
affinity:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- with (default .Values.topologySpreadConstraints .Values.mastodon.streaming.topologySpreadConstraints) }}
|
||||||
|
topologySpreadConstraints:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
{{- with .Values.tolerations }}
|
{{- with .Values.tolerations }}
|
||||||
tolerations:
|
tolerations:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
|
|
|
@ -160,6 +160,10 @@ spec:
|
||||||
affinity:
|
affinity:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- with (default .Values.topologySpreadConstraints .Values.mastodon.web.topologySpreadConstraints) }}
|
||||||
|
topologySpreadConstraints:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
{{- with .Values.tolerations }}
|
{{- with .Values.tolerations }}
|
||||||
tolerations:
|
tolerations:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
|
|
14
values.yaml
14
values.yaml
|
@ -101,6 +101,8 @@ mastodon:
|
||||||
resources: {}
|
resources: {}
|
||||||
# -- Affinity for all Sidekiq Deployments unless overwritten, overwrites .Values.affinity
|
# -- Affinity for all Sidekiq Deployments unless overwritten, overwrites .Values.affinity
|
||||||
affinity: {}
|
affinity: {}
|
||||||
|
# -- Topology spread constraints for Sidekiq Pods, overwrites .Values.topologySpreadConstraints
|
||||||
|
topologySpreadConstraints: {}
|
||||||
# limits:
|
# limits:
|
||||||
# cpu: "1"
|
# cpu: "1"
|
||||||
# memory: 768Mi
|
# memory: 768Mi
|
||||||
|
@ -117,6 +119,8 @@ mastodon:
|
||||||
resources: {}
|
resources: {}
|
||||||
# -- Affinity for this specific deployment, overwrites .Values.affinity and .Values.mastodon.sidekiq.affinity
|
# -- Affinity for this specific deployment, overwrites .Values.affinity and .Values.mastodon.sidekiq.affinity
|
||||||
affinity: {}
|
affinity: {}
|
||||||
|
# -- Topology spread constraints for this specific deployment, overwrites .Values.topologySpreadConstraints and .Values.mastodon.sidekiq.topologySpreadConstraints
|
||||||
|
topologySpreadConstraints: {}
|
||||||
# -- Sidekiq queues for Mastodon that are handled by this worker. See https://docs.joinmastodon.org/admin/scaling/#concurrency
|
# -- Sidekiq queues for Mastodon that are handled by this worker. See https://docs.joinmastodon.org/admin/scaling/#concurrency
|
||||||
# See https://github.com/mperham/sidekiq/wiki/Advanced-Options#queues for how to weight queues as argument
|
# See https://github.com/mperham/sidekiq/wiki/Advanced-Options#queues for how to weight queues as argument
|
||||||
queues:
|
queues:
|
||||||
|
@ -174,6 +178,8 @@ mastodon:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
# -- Affinity for Streaming Pods, overwrites .Values.affinity
|
# -- Affinity for Streaming Pods, overwrites .Values.affinity
|
||||||
affinity: {}
|
affinity: {}
|
||||||
|
# -- Topology spread constraints for Streaming Pods, overwrites .Values.topologySpreadConstraints
|
||||||
|
topologySpreadConstraints: {}
|
||||||
# -- Pod Security Context for Streaming Pods, overwrites .Values.podSecurityContext
|
# -- Pod Security Context for Streaming Pods, overwrites .Values.podSecurityContext
|
||||||
podSecurityContext: {}
|
podSecurityContext: {}
|
||||||
# -- (Streaming Container) Security Context for Streaming Pods, overwrites .Values.securityContext
|
# -- (Streaming Container) Security Context for Streaming Pods, overwrites .Values.securityContext
|
||||||
|
@ -192,6 +198,8 @@ mastodon:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
# -- Affinity for Web Pods, overwrites .Values.affinity
|
# -- Affinity for Web Pods, overwrites .Values.affinity
|
||||||
affinity: {}
|
affinity: {}
|
||||||
|
# -- Topology spread constraints for Web Pods, overwrites .Values.topologySpreadConstraints
|
||||||
|
topologySpreadConstraints: {}
|
||||||
# -- Pod Security Context for Web Pods, overwrites .Values.podSecurityContext
|
# -- Pod Security Context for Web Pods, overwrites .Values.podSecurityContext
|
||||||
podSecurityContext: {}
|
podSecurityContext: {}
|
||||||
# -- (Web Container) Security Context for Web Pods, overwrites .Values.securityContext
|
# -- (Web Container) Security Context for Web Pods, overwrites .Values.securityContext
|
||||||
|
@ -478,3 +486,9 @@ tolerations: []
|
||||||
|
|
||||||
# -- Affinity for all pods unless overwritten
|
# -- Affinity for all pods unless overwritten
|
||||||
affinity: {}
|
affinity: {}
|
||||||
|
|
||||||
|
# -- Topology Spread Constraints for all pods unless overwritten
|
||||||
|
# Please note that you need to use `matchLabelKeys` (Kubernetes 1.25+) if you
|
||||||
|
# want to spread each deployment independently, or override topologySpreadConstraints
|
||||||
|
# for each deployment
|
||||||
|
topologySpreadConstraints: {}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user