diff --git a/chart/templates/deployment.yaml b/chart/templates/deployment.yaml index e24bc3b..300e130 100644 --- a/chart/templates/deployment.yaml +++ b/chart/templates/deployment.yaml @@ -5,6 +5,15 @@ metadata: labels: {{- include "versiago.labels" . | nindent 4 }} spec: + {{- if eq .Values.database.type "sqlite" }} + {{- if gt .Values.pod.replicas 1 }} + {{- fail "Having multiple replicas with a SQLite database isn't currently possible" }} + {{- end }} + + strategy: + type: Recreate + {{- end }} + replicas: {{ .Values.pod.replicas }} selector: matchLabels: