fix: support changing numbers of replicas
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
217eab774b
commit
ffbe7db0f9
@ -5,6 +5,11 @@ metadata:
|
|||||||
labels:
|
labels:
|
||||||
{{- include "drone.labels" . | nindent 4 }}
|
{{- include "drone.labels" . | nindent 4 }}
|
||||||
spec:
|
spec:
|
||||||
|
{{- if .Values.config.DRONE_DATABASE_DRIVER | default "sqlite3" | eq "sqlite3" }}
|
||||||
|
replicas: 1
|
||||||
|
{{- else }}
|
||||||
|
replicas: {{ .Values.replicas | default 1 }}
|
||||||
|
{{- end }}
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
{{- include "drone.selectorLabels" . | nindent 6 }}
|
{{- include "drone.selectorLabels" . | nindent 6 }}
|
||||||
|
@ -19,6 +19,10 @@ podPriorityClassName: ""
|
|||||||
podSecurityContext: {}
|
podSecurityContext: {}
|
||||||
# fsGroup: 2000
|
# fsGroup: 2000
|
||||||
|
|
||||||
|
# Increasing the amount of replicas has no effect, when `DRONE_DATABASE_DRIVER`
|
||||||
|
# is set to sqlite3.
|
||||||
|
replicas: 1
|
||||||
|
|
||||||
securityContext: {}
|
securityContext: {}
|
||||||
# capabilities:
|
# capabilities:
|
||||||
# drop:
|
# drop:
|
||||||
|
Loading…
Reference in New Issue
Block a user