diff --git a/Chart.yaml b/Chart.yaml index 2ee7189..b618690 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time # you make changes to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 5.1.1 +version: 5.1.2 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/templates/deployment-streaming.yaml b/templates/deployment-streaming.yaml index 0d7d071..b80b5e4 100644 --- a/templates/deployment-streaming.yaml +++ b/templates/deployment-streaming.yaml @@ -13,6 +13,11 @@ spec: {{- if (ne (toString .Values.mastodon.revisionHistoryLimit) "") }} 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: /api/v1/streaming/health + port: http + initialDelaySeconds: 5 + failureThreshold: 15 + periodSeconds: 5 {{- with (default .Values.resources .Values.mastodon.streaming.resources) }} resources: {{- toYaml . | nindent 12 }} diff --git a/templates/deployment-web.yaml b/templates/deployment-web.yaml index 487f443..70d1c29 100644 --- a/templates/deployment-web.yaml +++ b/templates/deployment-web.yaml @@ -13,6 +13,11 @@ spec: {{- if (ne (toString .Values.mastodon.revisionHistoryLimit) "") }} revisionHistoryLimit: {{ .Values.mastodon.revisionHistoryLimit }} {{- end }} + strategy: + type: RollingUpdate + rollingUpdate: + maxSurge: 10% + maxUnavailable: 25% selector: matchLabels: {{- include "mastodon.selectorLabels" . | nindent 6 }} @@ -203,6 +208,7 @@ spec: httpGet: path: /health port: http + initialDelaySeconds: 15 failureThreshold: 30 periodSeconds: 5 {{- with (default .Values.resources .Values.mastodon.web.resources) }}