kibana

by Helm

Helm chartv7.9.3App 7.9.3

Official Elastic helm chart for Kibana

About this chart

Kibana Helm Chart

This Helm chart is a lightweight way to configure and run our official [Kibana Docker image][].

  • Requirements
  • Installing
    • Install released version using Helm repository
    • Install development version from a branch
  • Upgrading
  • Usage notes
  • Configuration
    • Deprecated
  • FAQ
    • How to deploy this chart on a specific K8S distribution?
    • How to use Kibana with security (authentication and TLS) enabled?
    • How to install OSS version of Kibana?
    • How to install plugins?
    • How to import objects post-deployment?
  • Contributing

Requirements

  • [Helm][] >=2.8.0 and <3.0.0
  • Kubernetes >=1.9

See [supported configurations][] for more details.

Installing

This chart is tested with the latest 7.9.3 version.

Install released version using Helm repository

  • Add the Elastic Helm charts repo: helm repo add elastic https://helm.elastic.co

  • Install it:

    • with Helm 2: helm install --name kibana --version <version> elastic/kibana
    • with [Helm 3 (beta)][]: helm install kibana --version <version> elastic/kibana

Install development version from a branch

  • Clone the git repo: git clone [email protected]:elastic/helm-charts.git

  • Checkout the branch : git checkout 7.9

  • Install it:

    • with Helm 2: helm install --name kibana --version 7.9.3 ./helm-charts/kibana
    • with [Helm 3 (beta)][]: helm install kibana --version 7.9.3 ./helm-charts/kibana

Upgrading

Please always check [CHANGELOG.md][] and [BREAKING_CHANGES.md][] before upgrading to a new chart version.

Usage notes

  • Automated testing of this chart is currently only run against GKE (Google Kubernetes Engine).

  • This repo includes a number of [examples][] configurations which can be used as a reference. They are also used in the automated testing of this chart.

Configuration

ParameterDescriptionDefault
affinityConfigurable [affinity][]{}
elasticsearchHostsThe URLs used to connect to Elasticsearchhttp://elasticsearch-master:9200
envFromTemplatable string to be passed to the [environment from variables][] which will be appended to the envFrom: definition for the container[]
extraContainersTemplatable string of additional containers to be passed to the tpl function""
extraEnvsExtra [environment variables][] which will be appended to the env: definition for the containersee [values.yaml][]
extraInitContainersTemplatable string of additional containers to be passed to the tpl function""
fullnameOverrideOverrides the full name of the resources. If not set the name will default to " .Release.Name - .Values.nameOverride orChart.Name """
healthCheckPathThe 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
httpPortThe http port that Kubernetes will use for the healthchecks and the service5601
imagePullPolicyThe Kubernetes [imagePullPolicy][]valueIfNotPresent
imagePullSecretsConfiguration for [imagePullSecrets][] so that you can use a private registry for your image[]
imageTagThe Kibana Docker image tag7.9.3
imageThe Kibana Docker imagedocker.elastic.co/kibana/kibana
ingressConfigurable [ingress][] to expose the Kibana service.see [values.yaml][]
kibanaConfigAllows you to add any config files in /usr/share/kibana/config/ such as kibana.yml See [values.yaml][] for an example of the formatting{}
labelsConfigurable [labels][] applied to all Kibana pods{}
lifecycleAllows you to add [lifecycle hooks][]. See [values.yaml][] for an example of the formatting{}
nameOverrideOverrides the chart name for resources. If not set the name will default to .Chart.Name""
nodeSelectorConfigurable [nodeSelector][] so that you can target specific nodes for your Kibana instances{}
podAnnotationsConfigurable [annotations][] applied to all Kibana pods{}
podSecurityContextAllows you to set the [securityContext][] for the podsee [values.yaml][]
priorityClassNameThe name of the [PriorityClass][]. No default is supplied as the PriorityClass must be created first""
protocolThe protocol that will be used for the readinessProbe. Change this to https if you have server.ssl.enabled: true sethttp
readinessProbeConfiguration for the readiness [probe][]see [values.yaml][]
replicasKubernetes replica count for the Deployment (i.e. how many pods)1
resourcesAllows you to set the [resources][] for the Deploymentsee [values.yaml][]
secretMountsAllows you easily mount a secret as a file inside the Deployment. Useful for mounting certificates and other secrets. See [values.yaml][] for an example[]
securityContextAllows you to set the [securityContext][] for the containersee [values.yaml][]
serverHostThe [server.host][] Kibana setting. This is set explicitly so that the default always matches what comes with the Docker image0.0.0.0
serviceAccountAllows you to overwrite the "default" [serviceAccount][] for the pod[]
serviceConfigurable [service][] to expose the Kibana service.see [values.yaml][]
tolerationsConfigurable [tolerations][])[]
updateStrategyAllows you to change the default [updateStrategy][] for the Deployment. A [standard upgrade][] of Kibana requires a full stop and start which is why the default strategy is set to Recreatetype: Recreate

Deprecated

ParameterDescriptionDefault
elasticsearchURLThe URL used to connect to Elasticsearch. needs to be used for Kibana versions < 6.6""

FAQ

How to deploy this chart on a specific K8S distribution?

This chart is highly tested with [GKE][], but some K8S distribution also requires specific configurations.

We provide examples of configuration for the following K8S providers:

  • [OpenShift][]

How to use Kibana with security (authentication and TLS) enabled?

This Helm chart can use existing [Kubernetes secrets][] to setup credentials or certificates for examples. These secrets should be created outside of this chart and accessed using [environment variables][] and volumes.

An example can be found in [examples/security][].

How to install OSS version of Kibana?

Deploying OSS version of Elasticsearch can be done by setting image value to [kibana OSS Docker image][]

An example of Kibana deployment using OSS version can be found in [examples/oss][].

How to install plugins?

The recommended way to install plugins into our Docker images is to create a custom Docker image.

The Dockerfile would look something like:

ARG kibana_version
FROM docker.elastic.co/kibana/kibana:${kibana_version}

RUN bin/kibana-plugin install <plugin_url>

And then updating the image in values to point to your custom image.

There are a couple reasons we recommend this:

  1. Tying the availability of Kibana to the download service to install plugins is not a great idea or something that we recommend. Especially in Kubernetes where it is normal and expected for a container to be moved to another host at random times.
  2. Mutating the state of a running Docker image (by installing plugins) goes against best practices of containers and immutable infrastructure.

How to import objects post-deployment?

You can use postStart [lifecycle hooks][] to run code triggered after a container is created.

Here is an example of postStart hook to import an index-pattern and a dashboard:

lifecycle:
  postStart:
    exec:
      command:
        - bash
        - -c
        - |
          #!/bin/bash
          # Import a dashboard
          KB_U

Deploy kibana with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has kibana on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartkibana is pinned at v7.9.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply