mirror of
https://github.com/mastodon/chart
synced 2025-05-18 04:53:21 +00:00
Prevent scheduler queue from having more than 1 replica
This commit is contained in:
parent
b037ccb4ae
commit
7e98a85db8
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user