[bitnami/zookeeper] add customLivenessProbe and customReadinessProbe (#6547)

This commit is contained in:
enixon
2021-06-03 23:24:58 -07:00
committed by GitHub
parent 2f9d3b2750
commit b95b36668e
4 changed files with 15 additions and 1 deletions

View File

@@ -21,4 +21,4 @@ name: zookeeper
sources:
- https://github.com/bitnami/bitnami-docker-zookeeper
- https://zookeeper.apache.org/
version: 6.7.4
version: 6.8.0

View File

@@ -126,6 +126,8 @@ The following tables lists the configurable parameters of the ZooKeeper chart an
| `resources` | CPU/Memory resource requests/limits | Memory: `256Mi`, CPU: `250m` |
| `livenessProbe` | Liveness probe configuration for ZooKeeper | Check `values.yaml` file |
| `readinessProbe` | Readiness probe configuration for ZooKeeper | Check `values.yaml` file |
| `customLivenessProbe` | Override default liveness probe | `nil` |
| `customReadinessProbe` | Override default readiness probe | `nil` |
| `extraVolumes` | Extra volumes | `nil` |
| `extraVolumeMounts` | Mount extra volume(s) | `nil` |
| `initContainers` | Extra init container to add to the statefulset | `nil` |

View File

@@ -264,6 +264,8 @@ spec:
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
successThreshold: {{ .Values.livenessProbe.successThreshold }}
failureThreshold: {{ .Values.livenessProbe.failureThreshold }}
{{- else if .Values.customLivenessProbe }}
livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.customLivenessProbe "context" $) | nindent 12 }}
{{- end }}
{{- if .Values.readinessProbe.enabled }}
readinessProbe:
@@ -282,6 +284,8 @@ spec:
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
successThreshold: {{ .Values.readinessProbe.successThreshold }}
failureThreshold: {{ .Values.readinessProbe.failureThreshold }}
{{- else if .Values.customReadinessProbe }}
readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.customReadinessProbe "context" $) | nindent 12 }}
{{- end }}
volumeMounts:
- name: data

View File

@@ -408,6 +408,14 @@ readinessProbe:
successThreshold: 1
probeCommandTimeout: 2
## Custom Liveness probes for ZooKeeper
##
customLivenessProbe: {}
## Custom Readiness probes for ZooKeeper
##
customReadinessProbe: {}
## Network policies
## Ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
##