[bitnami/solr] Update readinessProbe and livenessProbe (#9771)

* [bitnami/solr] Update readinessProbe and livenessProbe

Signed-off-by: Gonzalo Gomez Gracia <gonzalog@vmware.com>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/solr] Update version

Signed-off-by: Gonzalo Gomez Gracia <gonzalog@vmware.com>

* [bitnami/solr] Update startupProbe

Signed-off-by: Gonzalo Gomez Gracia <gonzalog@vmware.com>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/solr] Add timeout parameter

Signed-off-by: Gonzalo Gomez Gracia <gonzalog@vmware.com>

* [bitnami/solr] Feedback

Signed-off-by: Gonzalo Gomez Gracia <gonzalog@vmware.com>

* [bitnami/solr] Update readinessProbe and livenessProbe

Signed-off-by: Gonzalo Gomez Gracia <gonzalog@vmware.com>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/solr] Update startupProbe

Signed-off-by: Gonzalo Gomez Gracia <gonzalog@vmware.com>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/solr] Add timeout parameter

Signed-off-by: Gonzalo Gomez Gracia <gonzalog@vmware.com>

* [bitnami/solr] Feedback

Signed-off-by: Gonzalo Gomez Gracia <gonzalog@vmware.com>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/solr] Update components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

Co-authored-by: Bitnami Containers <containers@bitnami.com>
This commit is contained in:
Gonzalo Gómez Gracia
2022-04-25 10:56:08 +02:00
committed by GitHub
parent 18f4b927bb
commit 31750e8a70
6 changed files with 62 additions and 44 deletions

View File

@@ -1,14 +0,0 @@
# The Readiness probe checks that SolR web is accessible,
# but this not guarantee that the cluster has finished the
# initialization process. We will revisit the probe and, in
# the meantime, wait some seconds to ensure the process has
# finished.
addr:
tcp://localhost:8983:
reachable: true
timeout: 60000
command:
wait-to-be-available:
exec: "sleep 60"
exit-status: 0
timeout: 130000

View File

@@ -1,9 +1,9 @@
dependencies:
- name: zookeeper
repository: https://charts.bitnami.com/bitnami
version: 9.0.6
version: 9.1.0
- name: common
repository: https://charts.bitnami.com/bitnami
version: 1.13.0
digest: sha256:aba086db1c591b8efb25870c435f9dfbe4c947d17f64923a05ac17b6fe1e18d2
generated: "2022-04-21T08:31:01.116769001Z"
digest: sha256:067b5477405c0d5b1a6e7e15086408475beeec48dad7e43d672772cd692efede
generated: "2022-04-25T08:05:03.852275975Z"

View File

@@ -27,4 +27,4 @@ name: solr
sources:
- https://github.com/bitnami/bitnami-docker-solr
- https://lucene.apache.org/solr/
version: 4.0.8
version: 4.0.9

View File

@@ -84,7 +84,7 @@ The command removes all the Kubernetes components associated with the chart and
| -------------------------------- | ------------------------------------------------------------- | ----------------------- |
| `image.registry` | Solr image registry | `docker.io` |
| `image.repository` | Solr image repository | `bitnami/solr` |
| `image.tag` | Solr image tag (immutable tags are recommended) | `8.11.1-debian-10-r60` |
| `image.tag` | Solr image tag (immutable tags are recommended) | `8.11.1-debian-10-r121` |
| `image.pullPolicy` | image pull policy | `IfNotPresent` |
| `image.pullSecrets` | Specify docker-registry secret names as an array | `[]` |
| `image.debug` | Specify if debug values should be set | `false` |
@@ -116,21 +116,21 @@ The command removes all the Kubernetes components associated with the chart and
| `replicaCount` | Number of solr replicas | `3` |
| `containerPorts.http` | Solr HTTP container port | `8983` |
| `livenessProbe.enabled` | Enable livenessProbe on Solr containers | `true` |
| `livenessProbe.initialDelaySeconds` | Initial delay seconds for livenessProbe | `30` |
| `livenessProbe.initialDelaySeconds` | Initial delay seconds for livenessProbe | `40` |
| `livenessProbe.periodSeconds` | Period seconds for livenessProbe | `10` |
| `livenessProbe.timeoutSeconds` | Timeout seconds for livenessProbe | `5` |
| `livenessProbe.timeoutSeconds` | Timeout seconds for livenessProbe | `15` |
| `livenessProbe.failureThreshold` | Failure threshold for livenessProbe | `6` |
| `livenessProbe.successThreshold` | Success threshold for livenessProbe | `1` |
| `readinessProbe.enabled` | Enable readinessProbe on Solr containers | `true` |
| `readinessProbe.initialDelaySeconds` | Initial delay seconds for readinessProbe | `5` |
| `readinessProbe.initialDelaySeconds` | Initial delay seconds for readinessProbe | `60` |
| `readinessProbe.periodSeconds` | Period seconds for readinessProbe | `10` |
| `readinessProbe.timeoutSeconds` | Timeout seconds for readinessProbe | `5` |
| `readinessProbe.timeoutSeconds` | Timeout seconds for readinessProbe | `15` |
| `readinessProbe.failureThreshold` | Failure threshold for readinessProbe | `6` |
| `readinessProbe.successThreshold` | Success threshold for readinessProbe | `1` |
| `startupProbe.enabled` | Enable startupProbe on Solr containers | `false` |
| `startupProbe.initialDelaySeconds` | Initial delay seconds for startupProbe | `30` |
| `startupProbe.initialDelaySeconds` | Initial delay seconds for startupProbe | `40` |
| `startupProbe.periodSeconds` | Period seconds for startupProbe | `10` |
| `startupProbe.timeoutSeconds` | Timeout seconds for startupProbe | `1` |
| `startupProbe.timeoutSeconds` | Timeout seconds for startupProbe | `15` |
| `startupProbe.failureThreshold` | Failure threshold for startupProbe | `15` |
| `startupProbe.successThreshold` | Success threshold for startupProbe | `1` |
| `customLivenessProbe` | Custom livenessProbe that overrides the default one | `{}` |
@@ -216,7 +216,7 @@ The command removes all the Kubernetes components associated with the chart and
| `volumePermissions.enabled` | Enable init container that changes the owner and group of the persistent volume | `false` |
| `volumePermissions.image.registry` | Init container volume-permissions image registry | `docker.io` |
| `volumePermissions.image.repository` | Init container volume-permissions image repository | `bitnami/bitnami-shell` |
| `volumePermissions.image.tag` | Init container volume-permissions image tag (immutable tags are recommended) | `10-debian-10-r340` |
| `volumePermissions.image.tag` | Init container volume-permissions image tag (immutable tags are recommended) | `10-debian-10-r402` |
| `volumePermissions.image.pullPolicy` | Init container volume-permissions image pull policy | `IfNotPresent` |
| `volumePermissions.image.pullSecrets` | Init container volume-permissions image pull secrets | `[]` |
| `volumePermissions.resources.limits` | Init container volume-permissions resource limits | `{}` |

View File

@@ -249,26 +249,58 @@ spec:
{{- if not .Values.diagnosticMode.enabled }}
{{- if .Values.livenessProbe.enabled }}
livenessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.livenessProbe "enabled") "context" $) | nindent 12 }}
httpGet:
scheme: {{ ternary "HTTPS" "HTTP" .Values.tls.enabled }}
path: "/solr"
port: {{ .Values.containerPorts.http }}
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
failureThreshold: {{ .Values.livenessProbe.failureThreshold }}
periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
successThreshold: {{ .Values.livenessProbe.successThreshold }}
exec:
command:
- "/bin/bash"
- -ec
- |
{{- if .Values.auth.enabled }}
SOLR_AUTH_TYPE=basic SOLR_AUTHENTICATION_OPTS="-Dbasicauth=${SOLR_ADMIN_USERNAME}:${SOLR_ADMIN_PASSWORD}" \
{{- end }}
solr assert --timeout {{ printf "%v000" .Values.livenessProbe.timeoutSeconds | quote }} --cloud "{{ ternary "https" "http" .Values.tls.enabled }}://localhost:${SOLR_PORT_NUMBER}/solr/"
{{- else if .Values.customLivenessProbe }}
livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.customLivenessProbe "context" $) | nindent 12 }}
{{- end }}
{{- if .Values.readinessProbe.enabled }}
readinessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.readinessProbe "enabled") "context" $) | nindent 12 }}
httpGet:
scheme: {{ ternary "HTTPS" "HTTP" .Values.tls.enabled }}
path: "/solr"
port: {{ .Values.containerPorts.http }}
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
failureThreshold: {{ .Values.readinessProbe.failureThreshold }}
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
successThreshold: {{ .Values.readinessProbe.successThreshold }}
exec:
command:
- "/bin/bash"
- -ec
- |
{{- if .Values.auth.enabled }}
SOLR_AUTH_TYPE=basic SOLR_AUTHENTICATION_OPTS="-Dbasicauth=${SOLR_ADMIN_USERNAME}:${SOLR_ADMIN_PASSWORD}" \
{{- end }}
solr assert --timeout {{ printf "%v000" .Values.readinessProbe.timeoutSeconds | quote }} --cloud "{{ ternary "https" "http" .Values.tls.enabled }}://localhost:${SOLR_PORT_NUMBER}/solr/"
{{- else if .Values.customReadinessProbe }}
readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.customReadinessProbe "context" $) | nindent 12 }}
{{- end }}
{{- if .Values.startupProbe.enabled }}
startupProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.startupProbe "enabled") "context" $) | nindent 12 }}
tcpSocket:
port: {{ .Values.containerPorts.http }}
initialDelaySeconds: {{ .Values.startupProbe.initialDelaySeconds }}
timeoutSeconds: {{ .Values.startupProbe.timeoutSeconds }}
failureThreshold: {{ .Values.startupProbe.failureThreshold }}
periodSeconds: {{ .Values.startupProbe.periodSeconds }}
successThreshold: {{ .Values.startupProbe.successThreshold }}
exec:
command:
- "/bin/bash"
- -ec
- |
{{- if .Values.auth.enabled }}
SOLR_AUTH_TYPE=basic SOLR_AUTHENTICATION_OPTS="-Dbasicauth=${SOLR_ADMIN_USERNAME}:${SOLR_ADMIN_PASSWORD}" \
{{- end }}
solr assert --timeout {{ printf "%v000" .Values.readinessProbe.timeoutSeconds | quote }} --cloud "{{ ternary "https" "http" .Values.tls.enabled }}://localhost:${SOLR_PORT_NUMBER}/solr/"
{{- else if .Values.customStartupProbe }}
startupProbe: {{- include "common.tplvalues.render" (dict "value" .Values.customStartupProbe "context" $) | nindent 12 }}
{{- end }}

View File

@@ -68,7 +68,7 @@ diagnosticMode:
image:
registry: docker.io
repository: bitnami/solr
tag: 8.11.1-debian-10-r121
tag: 8.11.1-debian-10-r125
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
## ref: https://kubernetes.io/docs/user-guide/images/#pre-pulling-images
@@ -171,9 +171,9 @@ containerPorts:
##
livenessProbe:
enabled: true
initialDelaySeconds: 30
initialDelaySeconds: 40
periodSeconds: 10
timeoutSeconds: 5
timeoutSeconds: 15
failureThreshold: 6
successThreshold: 1
## @param readinessProbe.enabled Enable readinessProbe on Solr containers
@@ -185,9 +185,9 @@ livenessProbe:
##
readinessProbe:
enabled: true
initialDelaySeconds: 5
initialDelaySeconds: 60
periodSeconds: 10
timeoutSeconds: 5
timeoutSeconds: 15
failureThreshold: 6
successThreshold: 1
## @param startupProbe.enabled Enable startupProbe on Solr containers
@@ -199,9 +199,9 @@ readinessProbe:
##
startupProbe:
enabled: false
initialDelaySeconds: 30
initialDelaySeconds: 40
periodSeconds: 10
timeoutSeconds: 1
timeoutSeconds: 15
failureThreshold: 15
successThreshold: 1
## @param customLivenessProbe Custom livenessProbe that overrides the default one
@@ -531,7 +531,7 @@ volumePermissions:
image:
registry: docker.io
repository: bitnami/bitnami-shell
tag: 10-debian-10-r402
tag: 10-debian-10-r406
pullPolicy: IfNotPresent
## Optionally specify an array of imagePullSecrets.
## Secrets must be manually created in the namespace.