3
0
mirror of https://github.com/mastodon/chart synced 2025-05-17 20:43:21 +00:00

Prevent scheduler queue from having more than 1 replica

This commit is contained in:
Alex Nordlund 2022-11-25 22:42:04 +01:00
parent b037ccb4ae
commit 7e98a85db8

View File

@ -10,10 +10,12 @@ metadata:
app.kubernetes.io/component: sidekiq-{{ .name }}
app.kubernetes.io/part-of: rails
spec:
replicas: {{ .replicas }}
{{- if (has "scheduler" .queues) }}
replicas: {{ min .replicas 1 }}
strategy:
type: Recreate
{{- else }}
replicas: {{ .replicas }}
{{- end }}
selector:
matchLabels: