diff --git a/templates/deployment-sidekiq.yaml b/templates/deployment-sidekiq.yaml index 3be193a..003c781 100644 --- a/templates/deployment-sidekiq.yaml +++ b/templates/deployment-sidekiq.yaml @@ -11,12 +11,13 @@ metadata: app.kubernetes.io/part-of: rails spec: {{- if (has "scheduler" .queues) }} - replicas: {{ min .replicas 1 }} + {{- if (gt (int .replicas) 1) }} + {{ fail "The scheduler queue should never have more than 1 replicas" }} + {{- end }} strategy: type: Recreate - {{- else }} - replicas: {{ .replicas }} {{- end }} + replicas: {{ .replicas }} selector: matchLabels: {{- include "mastodon.selectorLabels" $context | nindent 6 }}