From 22d82f650ea370e210ae396559ccb40c34c2d717 Mon Sep 17 00:00:00 2001 From: Mikhail Advani Date: Wed, 5 Dec 2018 20:56:12 +0100 Subject: [PATCH] [stable/kibana] Define successful threshold for kibana pod readiness(#9649) (#9658) Signed-off-by: Mikhail Advani --- stable/kibana/Chart.yaml | 2 +- stable/kibana/README.md | 8 ++++++++ stable/kibana/templates/deployment.yaml | 2 ++ stable/kibana/values.yaml | 2 ++ 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/stable/kibana/Chart.yaml b/stable/kibana/Chart.yaml index e440a7851d..4c7fb1ae37 100644 --- a/stable/kibana/Chart.yaml +++ b/stable/kibana/Chart.yaml @@ -1,5 +1,5 @@ name: kibana -version: 1.0.1 +version: 1.0.2 appVersion: 6.5.1 description: Kibana is an open source data visualization plugin for Elasticsearch icon: https://raw.githubusercontent.com/elastic/kibana/master/src/ui/public/icons/kibana-color.svg diff --git a/stable/kibana/README.md b/stable/kibana/README.md index 0cf0c0f0f6..686e8fff80 100644 --- a/stable/kibana/README.md +++ b/stable/kibana/README.md @@ -43,6 +43,9 @@ The following table lists the configurable parameters of the kibana chart and th | `affinity` | node/pod affinities | None | | `env` | Environment variables to configure Kibana | `{}` | | `files` | Kibana configuration files | None | +| `livenessProbe.enabled` | livenessProbe to be enabled? | `false` | +| `livenessProbe.initialDelaySeconds` | number of seconds | 30 | +| `livenessProbe.timeoutSeconds` | number of seconds | 10 | | `image.pullPolicy` | Image pull policy | `IfNotPresent` | | `image.repository` | Image repository | `docker.elastic.co/kibana/kibana-oss` | | `image.tag` | Image tag | `6.5.1` | @@ -88,6 +91,11 @@ The following table lists the configurable parameters of the kibana chart and th | `persistentVolumeClaim.accessModes` | Acces mode to the PVC | `ReadWriteOnce` | | `persistentVolumeClaim.size` | Size of the PVC | `5Gi` | | `persistentVolumeClaim.storageClass` | Storage class of the PVC | None: | +| `readinessProbe.enabled` | readinessProbe to be enabled? | `false` | +| `readinessProbe.initialDelaySeconds` | number of seconds | 30 | +| `readinessProbe.timeoutSeconds` | number of seconds | 10 | +| `readinessProbe.periodSeconds` | number of seconds | 10 | +| `readinessProbe.successThreshold` | number of successes | 5 | | `securityContext.enabled` | Enable security context (should be true for PVC) | `false` | | `securityContext.allowPrivilegeEscalation` | Allow privilege escalation | `false` | | `securityContext.runAsUser` | User id to run in pods | `1000` | diff --git a/stable/kibana/templates/deployment.yaml b/stable/kibana/templates/deployment.yaml index 7619fa5eba..2054059d98 100644 --- a/stable/kibana/templates/deployment.yaml +++ b/stable/kibana/templates/deployment.yaml @@ -156,6 +156,8 @@ spec: port: {{ .Values.service.internalPort }} initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }} timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }} + successThreshold: {{ .Values.readinessProbe.successThreshold }} + periodSeconds: {{ .Values.readinessProbe.periodSeconds }} {{- end }} resources: {{ toYaml .Values.resources | indent 10 }} diff --git a/stable/kibana/values.yaml b/stable/kibana/values.yaml index 5c25811a95..2cb7998f3d 100644 --- a/stable/kibana/values.yaml +++ b/stable/kibana/values.yaml @@ -83,6 +83,8 @@ readinessProbe: enabled: false initialDelaySeconds: 30 timeoutSeconds: 10 + periodSeconds: 10 + successThreshold: 5 # Enable an authproxy. Specify container in extraContainers authProxyEnabled: false