Skip to content

Commit

Permalink
[bitnami/mastodon] Use different liveness/readiness probes (#26126)
Browse files Browse the repository at this point in the history
* [bitnami/Mastodon] Use different liveness/readiness probes

Signed-off-by: David Gomez <[email protected]>

* Update CHANGELOG.md

Signed-off-by: Bitnami Containers <[email protected]>

---------

Signed-off-by: David Gomez <[email protected]>
Signed-off-by: Bitnami Containers <[email protected]>
Co-authored-by: Bitnami Containers <[email protected]>
  • Loading branch information
2 people authored and javsalgar committed May 22, 2024
1 parent e47b789 commit f5ea6f3
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 20 deletions.
7 changes: 6 additions & 1 deletion bitnami/mastodon/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
# Changelog

## 6.1.1 (2024-05-21)

* [bitnami/mastodon] Use different liveness/readiness probes ([#26126](https://github.com/bitnami/charts/pulls/26126))

## 6.1.0 (2024-05-21)

* [bitnami/mastodon] feat: :sparkles: :lock: Add warning when original images are replaced ([#26238](https://github.com/bitnami/charts/pulls/26238))
* [bitnami/*] ci: :construction_worker: Add tag and changelog support (#25359) ([91c707c](https://github.com/bitnami/charts/commit/91c707c)), closes [#25359](https://github.com/bitnami/charts/issues/25359)
* [bitnami/mastodon] feat: :sparkles: :lock: Add warning when original images are replaced (#26238) ([d8f42ab](https://github.com/bitnami/charts/commit/d8f42ab)), closes [#26238](https://github.com/bitnami/charts/issues/26238)

## <small>6.0.3 (2024-05-18)</small>

Expand Down
12 changes: 6 additions & 6 deletions bitnami/mastodon/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
dependencies:
- name: redis
repository: oci://registry-1.docker.io/bitnamicharts
version: 19.3.4
version: 19.4.0
- name: postgresql
repository: oci://registry-1.docker.io/bitnamicharts
version: 15.3.5
version: 15.4.0
- name: elasticsearch
repository: oci://registry-1.docker.io/bitnamicharts
version: 21.0.7
version: 21.1.0
- name: minio
repository: oci://registry-1.docker.io/bitnamicharts
version: 14.5.0
version: 14.6.0
- name: apache
repository: oci://registry-1.docker.io/bitnamicharts
version: 11.0.6
- name: common
repository: oci://registry-1.docker.io/bitnamicharts
version: 2.19.3
digest: sha256:2ecbf0a2110d5173cfe9d86abc54a97654b0b7930f6dd55ed3bb94d802365bef
generated: "2024-05-21T14:07:19.245850871+02:00"
digest: sha256:f00a135fd3b56a3341d191aa5351648e5d58656e527fefec41ec0807ca166ed8
generated: "2024-05-21T18:04:37.879578+02:00"
2 changes: 1 addition & 1 deletion bitnami/mastodon/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ maintainers:
name: mastodon
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/mastodon
version: 6.1.0
version: 6.1.1
1 change: 0 additions & 1 deletion bitnami/mastodon/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,6 @@ The [Bitnami mastodon](https://github.com/bitnami/containers/tree/main/bitnami/m
| `apache.service.loadBalancerIP` | Apache service LoadBalancer IP | `""` |
| `apache.service.ports.http` | Apache service port | `80` |
| `apache.vhostsConfigMap` | Name of the ConfigMap containing the Apache vhost configuration | `""` |
| `apache.livenessProbe.path` | Apache liveness probe path | `/api/v1/streaming/health` |
| `apache.readinessProbe.path` | Apache readiness probe path | `/api/v1/streaming/health` |
| `apache.startupProbe.path` | Apache startup probe path | `/api/v1/streaming/health` |
| `apache.ingress.enabled` | Enable ingress | `false` |
Expand Down
6 changes: 3 additions & 3 deletions bitnami/mastodon/templates/sidekiq/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,9 @@ spec:
livenessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.sidekiq.livenessProbe "enabled") "context" $) | nindent 12 }}
exec:
command:
- /bin/sh
- -c
- pgrep -f ^sidekiq
- pgrep
- -f
- sidekiq
{{- end }}
{{- if .Values.sidekiq.customReadinessProbe }}
readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.sidekiq.customReadinessProbe "context" $) | nindent 12 }}
Expand Down
3 changes: 1 addition & 2 deletions bitnami/mastodon/templates/streaming/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,7 @@ spec:
livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.streaming.customLivenessProbe "context" $) | nindent 12 }}
{{- else if .Values.streaming.livenessProbe.enabled }}
livenessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.streaming.livenessProbe "enabled") "context" $) | nindent 12 }}
httpGet:
path: /api/v1/streaming/health
tcpSocket:
port: http
{{- end }}
{{- if .Values.streaming.customReadinessProbe }}
Expand Down
3 changes: 1 addition & 2 deletions bitnami/mastodon/templates/web/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,7 @@ spec:
livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.web.customLivenessProbe "context" $) | nindent 12 }}
{{- else if .Values.web.livenessProbe.enabled }}
livenessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.web.livenessProbe "enabled") "context" $) | nindent 12 }}
httpGet:
path: /health
tcpSocket:
port: http
{{- end }}
{{- if .Values.web.customReadinessProbe }}
Expand Down
4 changes: 0 additions & 4 deletions bitnami/mastodon/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1845,10 +1845,6 @@ apache:
# We need to change the liveness probe to use the Mastodon streaming health checkpoint
# We use the streaming because it is the last service to be initialized together with
# sidekiq
## @param apache.livenessProbe.path Apache liveness probe path
##
livenessProbe:
path: "/api/v1/streaming/health"
## @param apache.readinessProbe.path Apache readiness probe path
##
readinessProbe:
Expand Down

0 comments on commit f5ea6f3

Please sign in to comment.