Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

feat: adding liveness probe for kibana #575

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion kibana/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ as a reference. They are also used in the automated testing of this chart.
| `extraEnvs` | Extra [environment variables][] which will be appended to the `env:` definition for the container | see [values.yaml][] |
| `extraInitContainers` | Templatable string of additional containers to be passed to the `tpl` function | `""` |
| `fullnameOverride` | Overrides the full name of the resources. If not set the name will default to " `.Release.Name` - `.Values.nameOverride orChart.Name` " | `""` |
| `healthCheckPath` | The path used for the readinessProbe to check that Kibana is ready. If you are setting `server.basePath` you will also need to update this to `/${basePath}/app/kibana` | `/app/kibana` |
| `healthCheckPath` | The path used for the readinessProbe and livenessProbe to check that Kibana is ready. If you are setting `server.basePath` you will also need to update this to `/${basePath}/app/kibana` | `/app/kibana` |
| `httpPort` | The http port that Kubernetes will use for the healthchecks and the service | `5601` |
| `imagePullPolicy` | The Kubernetes [imagePullPolicy][]value | `IfNotPresent` |
| `imagePullSecrets` | Configuration for [imagePullSecrets][] so that you can use a private registry for your image | `[]` |
Expand All @@ -119,6 +119,7 @@ as a reference. They are also used in the automated testing of this chart.
| `podSecurityContext` | Allows you to set the [securityContext][] for the pod | see [values.yaml][] |
| `priorityClassName` | The name of the [PriorityClass][]. No default is supplied as the PriorityClass must be created first | `""` |
| `protocol` | The protocol that will be used for the readinessProbe. Change this to `https` if you have `server.ssl.enabled: true` set | `http` |
| `livenessProbe` | Configuration for the liveness [probe][] | see [values.yaml][] |
| `readinessProbe` | Configuration for the readiness [probe][] | see [values.yaml][] |
| `replicas` | Kubernetes replica count for the Deployment (i.e. how many pods) | `1` |
| `resources` | Allows you to set the [resources][] for the Deployment | see [values.yaml][] |
Expand Down
5 changes: 5 additions & 0 deletions kibana/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ spec:
envFrom:
{{ toYaml .Values.envFrom | indent 10 }}
{{- end }}
livenessProbe:
{{ toYaml .Values.livenessProbe | indent 10 }}
httpGet:
path: {{ .Values.healthCheckPath }}
port: {{ .Values.httpPort }}
readinessProbe:
{{ toYaml .Values.readinessProbe | indent 10 }}
exec:
Expand Down
6 changes: 6 additions & 0 deletions kibana/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,12 @@ readinessProbe:
successThreshold: 3
timeoutSeconds: 5

livenessProbe:
failureThreshold: 3
initialDelaySeconds: 30
periodSeconds: 30
timeoutSeconds: 5

imagePullSecrets: []
nodeSelector: {}
tolerations: []
Expand Down