3
0
mirror of https://github.com/mastodon/chart synced 2025-05-17 20:43:21 +00:00

Additional rollout strategy for the rest of the deployments

This commit is contained in:
Tim Campbell 2024-07-08 15:44:57 +02:00
parent 5cf3d77fcc
commit aa1214bcfc
3 changed files with 17 additions and 2 deletions

View File

@ -19,7 +19,10 @@ spec:
{{ fail "The scheduler queue should never have more than 1 replicas" }}
{{- end }}
strategy:
type: Recreate
type: RollingUpdate
rollingUpdate:
maxSurge: 10%
maxUnavailable: 25%
{{- end }}
replicas: {{ .replicas }}
{{- if (ne (toString $context.Values.mastodon.revisionHistoryLimit) "<nil>") }}

View File

@ -13,6 +13,11 @@ spec:
{{- if (ne (toString .Values.mastodon.revisionHistoryLimit) "<nil>") }}
revisionHistoryLimit: {{ .Values.mastodon.revisionHistoryLimit }}
{{- end }}
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 10%
maxUnavailable: 25%
selector:
matchLabels:
{{- include "mastodon.selectorLabels" . | nindent 6 }}
@ -135,6 +140,13 @@ spec:
httpGet:
path: /api/v1/streaming/health
port: streaming
startupProbe:
httpGet:
path: /health
port: http
initialDelaySeconds: 15
failureThreshold: 30
periodSeconds: 5
{{- with (default .Values.resources .Values.mastodon.streaming.resources) }}
resources:
{{- toYaml . | nindent 12 }}

View File

@ -16,7 +16,7 @@ spec:
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 2
maxSurge: 10%
maxUnavailable: 25%
selector:
matchLabels: