Skip to content

Commit

Permalink
Additional rollout strategy for the rest of the deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
timetinytim committed Jul 8, 2024
1 parent 5cf3d77 commit aa1214b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
5 changes: 4 additions & 1 deletion templates/deployment-sidekiq.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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>") }}
Expand Down
12 changes: 12 additions & 0 deletions templates/deployment-streaming.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion templates/deployment-web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 2
maxSurge: 10%
maxUnavailable: 25%
selector:
matchLabels:
Expand Down

0 comments on commit aa1214b

Please sign in to comment.