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/component: sidekiq-{{ .name }}
|
||||||
app.kubernetes.io/part-of: rails
|
app.kubernetes.io/part-of: rails
|
||||||
spec:
|
spec:
|
||||||
replicas: {{ .replicas }}
|
|
||||||
{{- if (has "scheduler" .queues) }}
|
{{- if (has "scheduler" .queues) }}
|
||||||
|
replicas: {{ min .replicas 1 }}
|
||||||
strategy:
|
strategy:
|
||||||
type: Recreate
|
type: Recreate
|
||||||
|
{{- else }}
|
||||||
|
replicas: {{ .replicas }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user