kibana

by joaquinito2051

Helm chartv3.3.1App 7.9.3

Kibana is an open source data visualization plugin for Elasticsearch

About this chart

kibana - D2IQ

kibana is your window into the Elastic Stack. Specifically, it's an open source (Apache Licensed), browser-based analytics and search dashboard for Elasticsearch.

TL;DR;

$ helm install stable/kibana

Introduction

This chart bootstraps a kibana deployment on a Kubernetes cluster using the Helm package manager.

This chart is a combination of the upstream chart found at here and the previous official community chart. The community chart has since been deprecated. At D2IQ, we have found certain important tooling and ease of use has since been removed or refactored from the community version. To allow an easy transition from the community chart, while taking advantage of new changes from the now official chart, we have created our own new chart here.

The changes include:

  • Refactored how dashboards are defined, but preserved the option of enabling dashboard imports easily.
  • Changed the default kibana config file values.
  • Changed assuming major version of '7', previous versions are not likely to be supported on this chart.
  • Removed tests that expect elastic-search.

Installing the Chart

To install the chart with the release name my-release:

$ helm install my-release stable/kibana

The command deploys kibana on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.

NOTE : We notice that lower resource constraints given to the chart + plugins are likely not going to work well.

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm remove my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

We keep the following table for historical reasons, since we realize this table may not be up-to-date with the latest configurations.

ParameterDescriptionDefault
affinitynode/pod affinitiesNone
envEnvironment variables to configure Kibana{}
envFromSecretsEnvironment variables from secrets to the cronjob container{}
envFromSecrets.*.from.secret- secretKeyRef.name used for environment variable
envFromSecrets.*.from.key- secretKeyRef.key used for environment variable
filesKibana configuration filesNone
livenessProbe.enabledlivenessProbe to be enabled?false
livenessProbe.pathpath for livenessProbe/status
livenessProbe.initialDelaySecondsnumber of seconds30
livenessProbe.timeoutSecondsnumber of seconds10
image.pullPolicyImage pull policyIfNotPresent
image.repositoryImage repositorydocker.elastic.co/kibana/kibana-oss
image.tagImage tag6.7.0
image.pullSecretsSpecify image pull secretsnil
commandline.argsadd additional commandline argsnil
ingress.enabledEnables Ingressfalse
ingress.annotationsIngress annotationsNone:
ingress.hostsIngress accepted hostnamesNone:
ingress.tlsIngress TLS configurationNone:
nodeSelectornode labels for pod assignment{}
podAnnotationsannotations to add to each pod{}
podLabelslabels to add to each pod{}
replicaCountdesired number of pods1
revisionHistoryLimitrevisionHistoryLimit3
serviceAccountNameDEPRECATED: use serviceAccount.namenil
serviceAccount.createcreate a serviceAccount to run the podfalse
serviceAccount.namename of the serviceAccount to createkibana.fullname
authProxyEnabledenables authproxy. Create container in extracontainersfalse
extraContainersSidecar containers to add to the kibana pod{}
extraVolumeMountsadditional volumemounts for the kibana pod[]
extraVolumesadditional volumes to add to the kibana pod[]
resourcespod resource requests & limits{}
priorityClassNamepriorityClassNamenil
service.externalPortexternal port for the service443
service.internalPortinternal port for the service4180
service.portNameservice port nameNone:
service.authProxyPortport to use when using sidecar authProxyNone:
service.externalIPsexternal IP addressesNone:
service.loadBalancerIPLoad Balancer IP addressNone:
service.loadBalancerSourceRangesLimit load balancer source IPs to list of CIDRs (where available))[]
service.nodePortNodePort value if service.type is NodePortNone:
service.typetype of serviceClusterIP
service.clusterIPstatic clusterIP or None for headless servicesNone:
service.annotationsKubernetes service annotationsNone:
service.labelsKubernetes service labelsNone:
service.selectorKubernetes service selector{}
tolerationsList of node taints to tolerate[]
dashboardImport.enabledEnable dashboard importfalse
dashboardImport.timeoutTime in seconds waiting for Kibana to be in green overall state60
dashboardImport.basePathCustomizing base path url during dashboard import/
dashboardImport.xpackauth.enabledEnable Xpack authfalse
dashboardImport.xpackauth.usernameOptional Xpack usernamemyuser
dashboardImport.xpackauth.passwordOptional Xpack passwordmypass
dashboardImport.dashboardsDashboards{}
plugins.enabledEnable installation of plugins.false
plugins.resetOptional : Remove all installed plugins before installing all new onesfalse
plugins.valuesList of plugins to install. FormatNone:
persistentVolumeClaim.enabledEnable PVC for pluginsfalse
persistentVolumeClaim.existingClaimUse your own PVC for pluginsfalse
persistentVolumeClaim.annotationsAdd your annotations for the PVC{}
persistentVolumeClaim.accessModesAcces mode to the PVCReadWriteOnce
persistentVolumeClaim.sizeSize of the PVC5Gi
persistentVolumeClaim.storageClassStorage class of the PVCNone:
readinessProbe.enabledreadinessProbe to be enabled?false
readinessProbe.pathpath for readinessProbe/status
readinessProbe.initialDelaySecondsnumber of seconds30
readinessProbe.timeoutSecondsnumber of seconds10
readinessProbe.periodSecondsnumber of seconds10
readinessProbe.successThresholdnumber of successes5
securityContext.enabledEnable security context (should be true for PVC)false
securityContext.allowPrivilegeEscalationAllow privilege escalationfalse
securityContext.runAsUserUser id to run in pods1000
`securityCo

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 v3.3.1 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