diff --git a/Chart.yaml b/Chart.yaml index 1ebc973..dab9b44 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: 4.0.0 +version: 4.1.0 # 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 dd80404..6d6a877 100644 --- a/templates/deployment-streaming.yaml +++ b/templates/deployment-streaming.yaml @@ -62,14 +62,18 @@ spec: - name: streaming containerPort: {{ .Values.mastodon.streaming.port }} protocol: TCP + {{- with .Values.mastodon.streaming.livenessProbe }} livenessProbe: - httpGet: - path: /api/v1/streaming/health - port: streaming + {{- toYaml . | nindent 12 }} + {{- end }} + {{- with .Values.mastodon.streaming.readinessProbe }} readinessProbe: - httpGet: - path: /api/v1/streaming/health - port: streaming + {{- toYaml . | nindent 12 }} + {{- end }} + {{- with .Values.mastodon.streaming.startupProbe }} + startupProbe: + {{- toYaml . | nindent 12 }} + {{- end }} {{- 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 30308e2..3426f03 100644 --- a/templates/deployment-web.yaml +++ b/templates/deployment-web.yaml @@ -113,19 +113,18 @@ spec: - name: http containerPort: {{ .Values.mastodon.web.port }} protocol: TCP + {{- with .Values.mastodon.web.livenessProbe }} livenessProbe: - tcpSocket: - port: http + {{- toYaml . | nindent 12 }} + {{- end }} + {{- with .Values.mastodon.web.readinessProbe }} readinessProbe: - httpGet: - path: /health - port: http + {{- toYaml . | nindent 12 }} + {{- end }} + {{- with .Values.mastodon.web.startupProbe }} startupProbe: - httpGet: - path: /health - port: http - failureThreshold: 30 - periodSeconds: 5 + {{- toYaml . | nindent 12 }} + {{- end }} {{- with (default .Values.resources .Values.mastodon.web.resources) }} resources: {{- toYaml . | nindent 12 }} diff --git a/values.yaml b/values.yaml index 711f000..7e44abf 100644 --- a/values.yaml +++ b/values.yaml @@ -172,6 +172,24 @@ mastodon: # requests: # cpu: 250m # memory: 128Mi + # -- (Streaming Deployment) liveness and readiness probes + livenessProbe: + tcpSocket: + port: streaming + failureThreshold: 3 + periodSeconds: 10 + readinessProbe: + httpGet: + path: /api/v1/streaming/health + port: streaming + failureThreshold: 3 + periodSeconds: 10 + startupProbe: + httpGet: + path: /api/v1/streaming/health + port: streaming + failureThreshold: 20 + periodSeconds: 3 web: port: 3000 # -- Number of Web Pods running @@ -190,6 +208,24 @@ mastodon: # requests: # cpu: 250m # memory: 768Mi + # -- (Web Deployment) liveness and readiness probes + livenessProbe: + tcpSocket: + port: http + failureThreshold: 3 + periodSeconds: 10 + readinessProbe: + httpGet: + path: /health + port: http + failureThreshold: 3 + periodSeconds: 10 + startupProbe: + httpGet: + path: /health + port: http + failureThreshold: 20 + periodSeconds: 3 # -- Puma-specific options. Below values are based on default behavior in # config/puma.rb when no custom values are provided. minThreads: "5"