opensearch

by joaquinito2051

Helm chartv3.10.0App 3.10.0

A Helm chart for OpenSearch

About this chart

OpenSearch Helm Chart

This Helm chart installs OpenSearch with configurable TLS, RBAC and much more configurations. This chart caters a number of different use cases and setups.

  • OpenSearch Helm Chart
  • Requirements
  • Installing
  • Uninstalling
  • Configuration

Requirements

  • Kubernetes >= 1.14
  • Helm >= 2.17.0
  • We recommend you to have 8 GiB of memory available for this deployment, or at least 4 GiB for the minimum requirement. Else, the deployment is expected to fail.

Installing

Once you've added this Helm repository as per the repository-level README then you can install the chart as follows:

helm install my-release opensearch/opensearch

The command deploys OpenSearch with its associated components (data statefulsets, masters, clients) on the Kubernetes cluster in the default configuration.

NOTE: If using Helm 2 then you'll need to add the --name command line argument. If unspecified, Helm 2 will autogenerate a name for you.

Uninstalling

To delete/uninstall the chart with the release name my-release:

helm uninstall my-release

Configuration

ParameterDescriptionDefault
antiAffinityTopologyKeyThe [anti-affinity][] topology key. By default this will prevent multiple Opensearch nodes from running on the same Kubernetes nodekubernetes.io/hostname
antiAffinitySetting this to hard enforces the [anti-affinity][] rules. If it is set to soft it will be done "best effort". Setting it to custom will use whatever is set in the customAntiAffinity parameter. Other values will be ignored.hard
clusterNameThis will be used as the OpenSearch cluster name and should be unique per cluster in the namespaceopensearch-cluster
customAntiAffinityAllows passing in custom anti-affinity settings as defined in the [anti-affinity][] rules. Using this parameter requires setting the antiAffinity parameter to custom.{}
enableServiceLinksSet to false to disabling service links, which can cause slow pod startup times when there are many services in the current namespace.true
envFromTemplatable string to be passed to the [environment from variables][] which will be appended to the envFrom: definition for the container[]
configAllows you to add any config files in /usr/share/opensearch/config/ such as opensearch.yml and log4j2.properties. String or map format may be used for specifying content of each configuration file. In case of string format, the whole content of the config file will be replaced by new config file value when in case of using map format content of configuration file will be a result of merge. In both cases content passed through tpl. See [values.yaml][] for an example of the formatting (passed through tpl){}
opensearchJavaOptsJava options for OpenSearch. This is where you should configure the jvm heap size-Xmx512M -Xms512M
majorVersionUsed to set major version specific configuration. If you are using a custom image and not running the default OpenSearch version you will need to set this to the version you are running (e.g. majorVersion: 1)""
global.dockerRegistrySet if you want to change the default docker registry, e.g. a private one.""
extraContainersArray of extra containers""
extraEnvsExtra environments variables to be passed to OpenSearch services[]
extraInitContainersArray of extra init containers[]
extraVolumeMountsArray of extra volume mounts[]
extraVolumesArray of extra volumes to be added[]
fullnameOverrideOverrides 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""
hostAliasesConfigurable [hostAliases][]

Deploy opensearch with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has opensearch 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 chartopensearch is pinned at v3.10.0 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