Skip to content

Commit

Permalink
[bitnami/mongodb-sharded] Use different liveness/readiness probes (#2…
Browse files Browse the repository at this point in the history
…6153)

* [bitnami/mongodb-sharded] 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
dgomezleon and bitnami-bot authored May 22, 2024
1 parent f58f4c3 commit 6fb0875
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 15 deletions.
6 changes: 5 additions & 1 deletion bitnami/mongodb-sharded/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# Changelog

## 8.2.1 (2024-05-21)

* [bitnami/mongodb-sharded] Use different liveness/readiness probes ([#26153](https://github.com/bitnami/charts/pulls/26153))

## 8.2.0 (2024-05-21)

* [bitnami/mongodb-sharded] feat: :sparkles: :lock: Add warning when original images are replaced ([#26248](https://github.com/bitnami/charts/pulls/26248))
* [bitnami/mongodb-sharded] feat: :sparkles: :lock: Add warning when original images are replaced (#26 ([462a80f](https://github.com/bitnami/charts/commit/462a80f)), closes [#26248](https://github.com/bitnami/charts/issues/26248)

## 8.1.0 (2024-05-21)

Expand Down
1 change: 1 addition & 0 deletions bitnami/mongodb-sharded/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ dependencies:
version: 2.19.3
digest: sha256:de997835d9ce9a9deefc2d70d8c62b11aa1d1a76ece9e86a83736ab9f930bf4d
generated: "2024-05-21T14:16:47.710738045+02:00"

3 changes: 2 additions & 1 deletion bitnami/mongodb-sharded/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,5 @@ maintainers:
name: mongodb-sharded
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/mongodb-sharded
version: 8.2.0
version: 8.2.1

Original file line number Diff line number Diff line change
Expand Up @@ -356,8 +356,7 @@ spec:
livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.metrics.customLivenessProbe "context" $) | nindent 12 }}
{{- else if .Values.metrics.livenessProbe.enabled }}
livenessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.metrics.livenessProbe "enabled") "context" $) | nindent 12 }}
httpGet:
path: /metrics
tcpSocket:
port: metrics
{{- end }}
{{- if .Values.metrics.customReadinessProbe }}
Expand Down
8 changes: 3 additions & 5 deletions bitnami/mongodb-sharded/templates/mongos/mongos-dep-sts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,8 @@ spec:
livenessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.mongos.livenessProbe "enabled") "context" $) | nindent 12 }}
exec:
command:
- /bin/sh
- -c
- mongosh --port $MONGODB_PORT_NUMBER --eval "db.adminCommand('ping')"
- pegrep
- mongod
{{- end }}
{{- if .Values.mongos.customReadinessProbe }}
readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.mongos.customReadinessProbe "context" $) | nindent 12 }}
Expand Down Expand Up @@ -319,8 +318,7 @@ spec:
livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.metrics.customLivenessProbe "context" $) | nindent 12 }}
{{- else if .Values.metrics.livenessProbe.enabled }}
livenessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.metrics.livenessProbe "enabled") "context" $) | nindent 12 }}
httpGet:
path: /metrics
tcpSocket:
port: metrics
{{- end }}
{{- if .Values.metrics.customReadinessProbe }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,11 @@ spec:
livenessProbe: {{- include "common.tplvalues.render" (dict "value" $.Values.shardsvr.arbiter.customLivenessProbe "context" $) | nindent 12 }}
{{- else if $.Values.shardsvr.arbiter.livenessProbe.enabled }}
livenessProbe: {{- include "common.tplvalues.render" (dict "value" (omit $.Values.shardsvr.arbiter.livenessProbe "enabled") "context" $) | nindent 12 }}
tcpSocket:
port: mongodb
exec:
command:
- pgrep
- -f
- mongodb
{{- end }}
{{- if $.Values.shardsvr.arbiter.customReadinessProbe }}
readinessProbe: {{- include "common.tplvalues.render" (dict "value" $.Values.shardsvr.arbiter.customReadinessProbe "context" $) | nindent 12 }}
Expand Down Expand Up @@ -322,8 +325,7 @@ spec:
livenessProbe: {{- include "common.tplvalues.render" (dict "value" $.Values.metrics.customLivenessProbe "context" $) | nindent 12 }}
{{- else if $.Values.metrics.livenessProbe.enabled }}
livenessProbe: {{- include "common.tplvalues.render" (dict "value" (omit $.Values.metrics.livenessProbe "enabled") "context" $) | nindent 12 }}
httpGet:
path: /metrics
tcpSocket:
port: metrics
{{- end }}
{{- if $.Values.metrics.customReadinessProbe }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,7 @@ spec:
livenessProbe: {{- include "common.tplvalues.render" (dict "value" $.Values.metrics.customLivenessProbe "context" $) | nindent 12 }}
{{- else if $.Values.metrics.livenessProbe.enabled }}
livenessProbe: {{- include "common.tplvalues.render" (dict "value" (omit $.Values.metrics.livenessProbe "enabled") "context" $) | nindent 12 }}
httpGet:
path: /metrics
tcpSocket:
port: metrics
{{- end }}
{{- if $.Values.metrics.customReadinessProbe }}
Expand Down

0 comments on commit 6fb0875

Please sign in to comment.