mirror of
https://github.com/mastodon/chart
synced 2025-05-18 13:03:21 +00:00
Additional rollout strategy for the rest of the deployments
This commit is contained in:
parent
5cf3d77fcc
commit
aa1214bcfc
|
@ -19,7 +19,10 @@ spec:
|
||||||
{{ fail "The scheduler queue should never have more than 1 replicas" }}
|
{{ fail "The scheduler queue should never have more than 1 replicas" }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
strategy:
|
strategy:
|
||||||
type: Recreate
|
type: RollingUpdate
|
||||||
|
rollingUpdate:
|
||||||
|
maxSurge: 10%
|
||||||
|
maxUnavailable: 25%
|
||||||
{{- end }}
|
{{- end }}
|
||||||
replicas: {{ .replicas }}
|
replicas: {{ .replicas }}
|
||||||
{{- if (ne (toString $context.Values.mastodon.revisionHistoryLimit) "<nil>") }}
|
{{- if (ne (toString $context.Values.mastodon.revisionHistoryLimit) "<nil>") }}
|
||||||
|
|
|
@ -13,6 +13,11 @@ spec:
|
||||||
{{- if (ne (toString .Values.mastodon.revisionHistoryLimit) "<nil>") }}
|
{{- if (ne (toString .Values.mastodon.revisionHistoryLimit) "<nil>") }}
|
||||||
revisionHistoryLimit: {{ .Values.mastodon.revisionHistoryLimit }}
|
revisionHistoryLimit: {{ .Values.mastodon.revisionHistoryLimit }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
strategy:
|
||||||
|
type: RollingUpdate
|
||||||
|
rollingUpdate:
|
||||||
|
maxSurge: 10%
|
||||||
|
maxUnavailable: 25%
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
{{- include "mastodon.selectorLabels" . | nindent 6 }}
|
{{- include "mastodon.selectorLabels" . | nindent 6 }}
|
||||||
|
@ -135,6 +140,13 @@ spec:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /api/v1/streaming/health
|
path: /api/v1/streaming/health
|
||||||
port: streaming
|
port: streaming
|
||||||
|
startupProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /health
|
||||||
|
port: http
|
||||||
|
initialDelaySeconds: 15
|
||||||
|
failureThreshold: 30
|
||||||
|
periodSeconds: 5
|
||||||
{{- with (default .Values.resources .Values.mastodon.streaming.resources) }}
|
{{- with (default .Values.resources .Values.mastodon.streaming.resources) }}
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml . | nindent 12 }}
|
{{- toYaml . | nindent 12 }}
|
||||||
|
|
|
@ -16,7 +16,7 @@ spec:
|
||||||
strategy:
|
strategy:
|
||||||
type: RollingUpdate
|
type: RollingUpdate
|
||||||
rollingUpdate:
|
rollingUpdate:
|
||||||
maxSurge: 2
|
maxSurge: 10%
|
||||||
maxUnavailable: 25%
|
maxUnavailable: 25%
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user