Skip to content
Open
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 10 additions & 6 deletions templates/deployment-streaming.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
19 changes: 9 additions & 10 deletions templates/deployment-web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,19 +97,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 }}
Expand Down
36 changes: 36 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,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
Expand All @@ -187,6 +205,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

metrics:
statsd:
Expand Down