Skip to content

Commit

Permalink
[bitnami/solr] Use different liveness/readiness probes
Browse files Browse the repository at this point in the history
Signed-off-by: David Gomez <[email protected]>
  • Loading branch information
dgomezleon committed May 20, 2024
1 parent 06839ae commit 38fc213
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions bitnami/solr/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
dependencies:
- name: zookeeper
repository: oci://registry-1.docker.io/bitnamicharts
version: 13.2.1
version: 13.2.2
- name: common
repository: oci://registry-1.docker.io/bitnamicharts
version: 2.19.2
digest: sha256:4aa715856f3250fb786c737f21e3095d798b0a91695dde4e99230f064873b5e2
generated: "2024-05-18T02:58:25.533455678Z"
digest: sha256:27ef124d0a7c4c11c04450cfed5a6fa683e8f2a06da7cfc36f3a8d6f8d319f17
generated: "2024-05-20T12:56:13.24245+02:00"
3 changes: 1 addition & 2 deletions bitnami/solr/templates/metrics-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,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: {{ .Values.metrics.containerPorts.http }}
{{- end }}
{{- if .Values.metrics.customReadinessProbe }}
Expand Down
2 changes: 1 addition & 1 deletion bitnami/solr/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ spec:
- /bin/bash
- -ec
- |
curl --silent --connect-timeout 15000 {{ ternary "--user ${SOLR_ADMIN_USERNAME}:${SOLR_ADMIN_PASSWORD}" "" .Values.auth.enabled }} http://localhost:${SOLR_PORT_NUMBER}/api/node/health | grep --quiet '\"status\":\"OK\"'
curl --silent --connect-timeout 15000 {{ ternary "--user ${SOLR_ADMIN_USERNAME}:${SOLR_ADMIN_PASSWORD}" "" .Values.auth.enabled }} http://localhost:${SOLR_PORT_NUMBER}/solr/admin/info/system | grep --quiet '\"status\":0'
{{- end }}
{{- if .Values.customReadinessProbe }}
readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.customReadinessProbe "context" $) | nindent 12 }}
Expand Down

0 comments on commit 38fc213

Please sign in to comment.