elasticsearch-umbrella

by empathy.co

Helm chartv0.8.12App 7.17.2

A Helm chart for Kubernetes

About this chart

elasticsearch-umbrella

A Helm chart for Kubernetes

Requirements

RepositoryNameVersion
client(elasticsearch-deployment)0.8.12
master(elasticsearch-statefulset)0.8.12
data(elasticsearch-statefulset)0.8.12
index(elasticsearch-statefulset)0.8.12

Values

KeyTypeDefaultDescription
client.affinityOverrideobject{}
client.busybox.imagestring"busybox:1.31"Image for busybox initContainers (sysctlInitContainer in official Elasticsearch Helm chart)
client.elastic_configobject{"bootstrap.memory_lock":"true","logger.org.elasticsearch.discovery.gce":"TRACE","network.bind_host":"0.0.0.0","node.data":"false","node.master":"false","node.ml":"false","transport.tcp.compress":"true"}Elasticsearch configuration added in a configMap and passed to the Elasticsearch pods as Env. Vars.
client.elastic_config."bootstrap.memory_lock"string"true"Elasticsearch enable memory lock to avoid swapping
client.elastic_config."logger.org.elasticsearch.discovery.gce"string"TRACE"Elasticsearch GCE discovery log level
client.elastic_config."network.bind_host"string"0.0.0.0"Elasticsearch network.bind_host, network address(es) to which the node should bind in order to listen for incoming connections.
client.elastic_config."node.data"string"false"Elasticsearch data node role
client.elastic_config."node.master"string"false"Elasticsearch master node role
client.elastic_config."node.ml"string"false"Elasticsearch ml node role
client.elastic_config."transport.tcp.compress"string"true"Elasticsearch enable compression between nodes
client.enabledbooltrueEnabling or disabling client nodes
client.extraInitContainerslist[]Extra initContainers to be run after the ones needed by Elasticsearch
client.extraVolumeMountslist[]Extra volume to mount to the Elasticsearch container. Those must be first specified in the extraVolumes field.
client.extraVolumeslist[]Extra volumes, these can be later mounted on the extraInitContainers or to the Elasticsearch container.
client.fullnameOverridestring""Overrides the clusterName and nodeGroup when used in the naming of resources. This should only be used when using a single nodeGroup, otherwise you will have name conflicts
client.image.pullPolicystring"IfNotPresent"The Kubernetes imagePullPolicy value
client.image.repositorystring"empathyco/elasticsearch"Docker repository for Elasticsearch image
client.image.tagstring"7.17.2-memlock"Overrides the image tag whose default is the chart appVersion.
client.imagePullSecretslist[]Configuration for imagePullSecrets so that you can use a private registry for your image
client.ingress.annotationsobject{}Annotations for Kubernetes Ingress
client.ingress.classNamestring""IngressClass name for ingress exposition
client.ingress.enabledboolfalseEnable Kubernetes Ingress to expose Elasticsearch pods
client.ingress.hostslist[]Host and path for Kubernetes Ingress. See values.yaml for an example
client.ingress.tlslist[]TLS secret for exposing Elasticsearch with https. See values.yaml for an example
client.initContainersResourcesobject{}Set up resources of default Elasticsearch initContainers (same for all)
client.nameOverridestring""Overrides the clusterName when used in the naming of resources
client.nodeSelectorobject{}Configurable nodeSelector so that you can target specific nodes for your Elasticsearch cluster
client.podAnnotationsobject{}Configurable annotations applied to all Elasticsearch pods
client.podSecurityContextobject{}Allows you to set the securityContext for the pod
client.podSecurityPolicy.createboolfalseCreate a podSecurityPolicy with minimal permissions to run this Helm chart. Be sure to also set rbac.create to true, otherwise Role and RoleBinding won't be created.
client.podSecurityPolicy.namestring""The name of the podSecurityPolicy to use. If not set and create is true, a name is generated using the fullname template
client.podSecurityPolicy.specobject{}Spec to apply to the podSecurityPolicy. See values.yaml for an example
client.prometheus.annotationsobject{"app":"prometheus-operator","release":"prometheus"}Annotations to include in the ServiceMonitor
client.prometheus.command[0]string"/bin/elasticsearch_exporter"
client.prometheus.command[1]string"--es.uri=http://127.0.0.1:9200"
client.prometheus.enabledboolfalseDeploy a ServiceMonitor for Prometheus scrapping
client.prometheus.exporter.imagestring"prometheuscommunity/elasticsearch-exporter:v1.3.0"Exporter image to deploy as a sidecar container
client.prometheus.resources.requests.cpustring"100m"
client.prometheus.resources.requests.memorystring"128Mi"
client.rbac.createboolfalseWhether RBAC rules should be created (Role and Rolebinding)
client.replicaCountint3Kubernetes replica count for the Deployment (i.e. how many pods)
client.resources.requests.cpustring"1000m"CPU requests for the StatefulSet
client.resources.requests.memorystring"3Gi"Memory requests for the StatefulSet
client.securityContextobject{"capabilities":{"add":["IPC_LOCK","SYS_RESOURCE"]}}Allows you to set the securityContext for the container
client.service.portint9200Kubernetes service port, used by Ingress to expose Elasticsearch pods
client.service.typestring"ClusterIP"Kubernetes service type
client.serviceAccount.annotationsobject{}Annotations to add to the service account
client.serviceAccount.createbooltrueSpecifies whether a service account should be created
client.serviceAccount.namestring""The name of the service account to use. If not set and create is true, a name is generated using the fullname template
client.tolerationslist[]Configurable tolerations
data.affinityOverrideobject{}
data.busybox.imagestring"busybox:1.31"Image for busybox initContainers (sysctlInitContainer in official Elasticsearch Helm chart)
data.elastic_configobject{"bootstrap.memory_lock":"true","logger.org.elasticsearch.discovery.gce":"TRACE","network.bind_host":"0.0.0.0","node.attr.type":"search","node.data":"true","node.ingest":"true","node.master":"false","node.ml":"false","transport.tcp.compress":"true"}Elasticsearch configuration added in a configMap and passed to the Elasticsearch pods as Env. Vars.
data.elastic_config."bootstrap.memory_lock"string"true"Elasticsearch enable memory lock to avoid swapping
data.elastic_config."logger.org.elasticsearch.discovery.gce"string"TRACE"Elasticsearch GCE discovery log level
data.elastic_config."network.bind_host"string"0.0.0.0"Elasticsearch network.bind_host, network address(es) to which the node should bind in order to listen for incoming connections.
data.elastic_config."node.attr.type"string"search"Elasticsearch node attribute type
data.elastic_config."node.data"string"true"Elasticsearch data node role
data.elastic_config."node.ingest"string"true"Elasticsearch ingest node role
data.elastic_config."node.master"string"false"Elasticsearch master node role
data.elastic_config."node.ml"string"false"Elasticsearch ml node role
data.elastic_config."transport.tcp.compress"string"true"Elasticsearch enable compression between nodes
data.enabledbooltrueEnabling or disabling data nodes
data.extraInitContainerslist[]Extra initContainers to be run after the ones needed by Elasticsearch
data.extraVolumeMountslist[]Extra volume to mount to the Elasticsearch container. Those must be first specified in the extraVolumes field.
data.extraVolumeslist[]Extra volumes, these can be later mounted on the extraInitContainers or to the Elasticsearch container.
data.fullnameOverridestring""Overrides the clusterName and nodeGroup when used in the naming of resources. This should only be used when using a single nodeGroup, otherwise you will have name conflicts
data.image.pullPolicystring"IfNotPresent"The Kubernetes imagePullPolicy value
data.image.repositorystring"empathyco/elasticsearch"Docker repository for Elasticsearch image
data.image.tagstring"7.17.2-memlock"Overrides the image tag whose default is the chart appVersion.
data.imagePullSecretslist[]Configuration for imagePullSecrets so that you can use a private registry for your image
data.ingress.annotationsobject{}Annotations for Kubernetes Ingress
data.ingress.classNamestring""IngressClass name for ingress exposition
data.ingress.enabledboolfalseEnable Kubernetes Ingress to expose Elasticsearch pods
data.ingress.hostslist[]Host and path for Kubernetes Ingress. See values.yaml for an example
data.ingress.tlslist[]TLS secret for exposing Elasticsearch with https. See values.yaml for an example
data.initContainersResourcesobject{}Set up resources of default Elasticsearch initContainers (same for all)
data.isMasterboolfalseThis property indicates its the master
data.nameOverridestring""Overrides the clusterName when used in the naming of resources
data.nodeSelectorobject{}Configurable nodeSelector so that you can target specific nodes for your Elasticsearch cluster
data.podAnnotationsobject{}Configurable annotations applied to all Elasticsearch pods
data.podSecurityContextobject{}Allows you to set the securityContext for the pod
data.podSecurityPolicy.createboolfalseCreate a podSecurityPolicy with minimal permissions to run this Helm chart. Be sure to also set rbac.create to true, otherwise Role and RoleBinding won't be created.
data.podSecurityPolicy.namestring""The name of the podSecurityPolicy to use. If not set and create is true, a name is generated using the fullname template
data.podSecurityPolicy.specobject{}Spec to apply to the podSecurityPolicy. See values.yaml for an example
data.prometheus.annotationsobject{"app":"prometheus-operator","release":"prometheus"}Annotations to include in the ServiceMonitor
data.prometheus.command[0]string"/bin/elasticsearch_exporter"
data.prometheus.command[1]string"--es.uri=http://127.0.0.1:9200"
data.prometheus.enabledboolfalseDeploy a ServiceMonitor for Prometheus scrapping
data.prometheus.exporter.imagestring"prometheuscommunity/elasticsearch-exporter:v1.3.0"Exporter image to deploy as a sidecar container
data.prometheus.resources.requests.cpustring"100m"
data.prometheus.resources.requests.memorystring"128Mi"
data.rbac.createboolfalseWhether RBAC rules should be created (Role and Rolebinding)
data.replicaCountint3Kubernetes replica count for the StatefulSet (i.e. how many pods)
data.resources.requests.cpustring"1000m"CPU requests for the StatefulSet
data.resources.requests.memorystring"3Gi"Memory requests for the StatefulSet
data.securityContextobject{"capabilities":{"add":["IPC_LOCK","SYS_RESOURCE"]}}Allows you to set the securityContext for the container
data.service.portint9200Kubernetes service port, used by Ingress to expose Elasticsearch pods
data.service.typestring"ClusterIP"Kubernetes service type
data.serviceAccount.annotationsobject{}Annotations to add to the service account
data.serviceAccount.createbooltrueSpecifies whether a service account should be created
data.serviceAccount.namestring""The name of the service account to use. If not set and create is true, a name is generated using the fullname template
data.tolerationslist[]Configurable tolerations
data.volume.annotationsobject{}Annotations for statefulSet volumes
data.volume.storagestring"200Gi"Storage resources for statefulSet volumes
data.volume.storage_classstring"standard"Storage class for statefulSet volumes
global.elastic_config."cluster.name"string"es"Elasticsearch cluster.name and should be unique per cluster in the namespace. Note that it should be the same as elasticsearch-data.elastic_config."cluster.name" so both subcharts belong to the same cluster.
global.masterFullnamestring"es-master"Fullname of the master, necessary to connect
global.metrics.enabledboolfalse
global.metrics.prometheus.annotationsobject{}Annotations to include in the ServiceMonitor
global.metrics.prometheus.labels.releasestring"prometheus"
global.metrics.serviceMonitor.intervalstring""Elasticsearch cluster serviceMonitor
global.metrics.serviceMonitor.metricRelabelingslist[]
global.metrics.serviceMonitor.relabelingslist[]
g

Deploy elasticsearch-umbrella with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has elasticsearch-umbrella 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 chartelasticsearch-umbrella is pinned at v0.8.12 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