opensearch-cluster

by OpenSearch

Helm chartv3.3.5App 3.4.0Verified publisher

A Helm chart for OpenSearch Cluster

About this chart

opensearch-cluster

A Helm chart for OpenSearch Cluster

Values

The following table lists the configurable parameters of the Helm chart.

ParameterTypeDefaultDescription
apiGroupstring"opensearch.org"API group for OpenSearch CRDs. Use "opensearch.org" (recommended) or "opensearch.opster.io" (legacy)
nameOverridestring""
fullnameOverridestring""
serviceAccount.createboolfalseCreate Service Account
serviceAccount.namestring""Service Account name. Set general.serviceAccount to use this Service Account for the Opensearch cluster
serviceAccount.annotationsobject{}Service Account annotations
cluster.namestring""cluster name, by default release name is used
cluster.annotationsobject{}cluster annotations
cluster.labelsobject{}cluster labels
cluster.general.additionalConfigobject{}Extra items to add to the opensearch.yml
cluster.general.additionalVolumeslist[]Additional volumes to mount to all pods in the cluster. Supported volume types configMap, emptyDir, secret (with default Kubernetes configuration schema)
cluster.general.drainDataNodesbooltrueControls whether to drain data notes on rolling restart operations
cluster.general.httpPortint9200Opensearch service http port
cluster.general.imagestring"docker.io/opensearchproject/opensearch"Opensearch image
cluster.general.imagePullPolicystring"IfNotPresent"Default image pull policy
cluster.general.operatorClusterURLstring""Optional custom URL for operator to communicate with OpenSearch This is useful when using external certificates (e.g., from cert-manager) that are valid for a specific FQDN. The operator will use this URL instead of the default internal Kubernetes service DNS name.
cluster.general.keystorelist[]Populate opensearch keystore before startup
cluster.general.monitoring.enableboolfalseEnable cluster monitoring
cluster.general.monitoring.labelsobject{}Additional labels to apply to the generated ServiceMonitor
cluster.general.monitoring.monitoringUserSecretstring""Secret with 'username' and 'password' keys for monitoring user. You could also use OpenSearchUser CRD instead of setting it.
cluster.general.monitoring.pluginUrlstring""Custom URL for the monitoring plugin
cluster.general.monitoring.scrapeIntervalstring"30s"How often to scrape metrics
cluster.general.monitoring.tlsConfigobject{}Override the tlsConfig of the generated ServiceMonitor
cluster.general.hostNetworkboolfalse
cluster.general.pluginsListlist[]List of Opensearch plugins to install
cluster.general.podSecurityContextobject{}Opensearch pod security context configuration
cluster.general.securityContextobject{}Opensearch securityContext
cluster.general.serviceAccountstring""Opensearch serviceAccount name. If Service Account doesn't exist it could be created by setting serviceAccount.create and serviceAccount.name
cluster.general.serviceNamestring""Opensearch service name
cluster.general.setVMMaxMapCountbooltrueEnable setVMMaxMapCount. OpenSearch requires the Linux kernel vm.max_map_count option to be set to at least 262144
cluster.general.snapshotRepositorieslist[]Opensearch snapshot repositories configuration
cluster.general.vendorstring"Opensearch"
cluster.general.versionstring""Opensearch version
cluster.bootstrap.envlist[]bootstrap pod env variables
cluster.bootstrap.affinityobject{}bootstrap pod affinity rules
cluster.bootstrap.annotationsobject{}bootstrap pod annotations
cluster.bootstrap.jvmstring""bootstrap pod jvm options. If jvm is not provided then the java heap size will be set to half of resources.requests.memory which is the recommend value for data nodes. If jvm is not provided and resources.requests.memory does not exist then value will be -Xmx512M -Xms512M
cluster.bootstrap.nodeSelectorobject{}bootstrap pod node selectors
cluster.bootstrap.resourcesobject{}bootstrap pod cpu and memory resources
cluster.bootstrap.tolerationslist[]bootstrap pod tolerations
cluster.confMgmt.smartScalerbooltrueEnable nodes to be safely removed from the cluster
cluster.dashboards.additionalConfigobject{}Additional properties for opensearch_dashboards.yaml
cluster.dashboards.affinityobject{}dashboards pod affinity rules
cluster.dashboards.annotationsobject{}dashboards annotations
cluster.dashboards.topologySpreadConstraintslist[]dashboards pod topologySpreadConstraints
cluster.dashboards.basePathstring""dashboards Base Path for Opensearch Clusters running behind a reverse proxy
cluster.dashboards.enablebooltrueEnable dashboards deployment
cluster.dashboards.envlist[]dashboards pod env variables
cluster.dashboards.imagestring"docker.io/opensearchproject/opensearch-dashboards"dashboards image
cluster.dashboards.imagePullPolicystring"IfNotPresent"dashboards image pull policy
cluster.dashboards.imagePullSecretslist[]dashboards image pull secrets
cluster.dashboards.labelsobject{}dashboards labels
cluster.dashboards.nodeSelectorobject{}dashboards pod node selectors
cluster.dashboards.opensearchCredentialsSecretobject{}Secret that contains fields username and password for dashboards to use to login to opensearch, must only be supplied if a custom securityconfig is provided
cluster.dashboards.pluginsListlist[]List of dashboards plugins to install
cluster.dashboards.podSecurityContextobject{}dasboards pod security context configuration
cluster.dashboards.replicasint1number of dashboards replicas
cluster.dashboards.resourcesobject{}dashboards pod cpu and memory resources
cluster.dashboards.securityContextobject{}dashboards security context configuration
cluster.dashboards.service.loadBalancerSourceRangeslist[]source ranges for a loadbalancer
cluster.dashboards.service.typestring"ClusterIP"dashboards service type
cluster.dashboards.tls.caSecretobject{}Secret that contains the ca certificate as ca.crt. If this and generate=true is set the existing CA cert from that secret is used to generate the node certs. In this case must contain ca.crt and ca.key fields
cluster.dashboards.tls.enableboolfalseEnable HTTPS for dashboards
cluster.dashboards.tls.generatebooltruegenerate certificate, if false secret must be provided
cluster.dashboards.tls.secretstringnilOptional, name of a TLS secret that contains ca.crt, tls.key and tls.crt data. If ca.crt is in a different secret provide it via the caSecret field
cluster.dashboards.tls.durationstring"8760h"Duration controls the validity period of generated certificates (e.g. "8760h", "720h"). This is used only when generate is true.
cluster.dashboards.tolerationslist[]dashboards pod tolerations
cluster.dashboards.versionstring""dashboards version
cluster.initHelper.imagestring"docker.io/busybox"initHelper image
cluster.initHelper.imagePullPolicystring"IfNotPresent"initHelper image pull policy
cluster.initHelper.imagePullSecretslist[]initHelper image pull secret
cluster.initHelper.resourcesobject{}initHelper pod cpu and memory resources
cluster.initHelper.versionstring"1.36"initHelper version
cluster.nodePoolslist[{"additionalConfig":{},"annotations":{},"component":"masters","diskSize":"30Gi","ingress":{"enabled":false},"replicas":3,"resources":{"limits":{"cpu":"500m","memory":"2Gi"},"requests":{"cpu":"500m","memory":"2Gi"}},"roles":["master","data"],"sidecarContainers":[]}]Opensearch nodes configuration
cluster.nodePools[0].annotationsobject{}node pool pod annotations
cluster.nodePools[0].additionalConfigobject{}Extra items to add to opensearch.yml for this specific nodepool (merged with general.additionalConfig)
cluster.nodePools[0].ingressobject{"enabled":false}Per-nodePool ingress configuration. Creates a separate Ingress targeting this nodePool's service.
cluster.nodePools[0].sidecarContainerslist[]These containers will be deployed as sidecars in the same pod as the OpenSearch container
cluster.security.config.adminCredentialsSecretobject{}Secret that contains fields username and password to be used by the operator to access the opensearch cluster for node draining. Must be set if custom securityconfig is provided.
cluster.security.config.adminSecretobject{}TLS Secret that contains a client certificate (tls.key, tls.crt, ca.crt) with admin rights in the opensearch cluster. Must be set if http certificates are provided by user and not generated
cluster.security.config.securityConfigSecretobject{}Secret that contains the differnt yml files of the opensearch-security config (config.yml, internal_users.yml, etc)
cluster.security.tls.http.enabledstringnilControls if TLS should be enabled for HTTP. If false, TLS is explicitly disabled. If not set (default), TLS is enabled when http configuration is provided. If true, TLS is explicitly enabled and http configuration must be provided.
cluster.security.tls.http.adminDnlist[]DNs of certificates that should have admin access, mainly used for securityconfig updates via securityadmin.sh, only used when existing certificates are provided
cluster.security.tls.http.caSecretobject{}Optional, secret that contains the ca certificate as ca.crt. If this and generate=true is set the existing CA cert from that secret is used to generate the node certs. In this case must contain ca.crt and ca.key fields
cluster.security.tls.http.generatebooltrueIf set to true the operator will generate a CA and certificates for the cluster to use, if false - secrets with existing certificates must be supplied
cluster.security.tls.http.customFQDNstring""Optional custom FQDN to use for the HTTP certificate. If provided, this FQDN will be used as the primary DNS name in the certificate's Subject Alternative Names (SAN), along with the default cluster DNS names. This allows you to use a single certificate that works with both your custom domain and the internal Kubernetes DNS names.
cluster.security.tls.http.secretobject{}Optional, name of a TLS secret that contains ca.crt, tls.key and tls.crt data. If ca.crt is in a different secret provide it via the caSecret field
cluster.security.tls.http.durationstring"8760h"Duration controls the validity period of generated certificates (e.g. "8760h", "720h"). This is used only when generate is true.
cluster.security.tls.http.enableHotReloadstringnilEnable hot reloading of TLS certificates so nodes pick up renewed certificates without a restart. Requires OpenSearch >= 2.19.1. Unset (~) defers to the operator: enabled on OpenSearch 3.x+, off below. Set true/false to override.
cluster.security.tls.transport.enabledstringnilControls if TLS should be enabled for transport. If false, TLS is explicitly disabled. If not set (default), TLS is enabled when transport configuration is provided. If true, TLS is explicitly enabled and transport configuration must be provided.
cluster.security.tls.transport.adminDnlist[]DNs of certificates that should have admin access, mainly used for securityconfig updates via securityadmin.sh, only used when existing certificates are provided. This field is deprecated and will be removed in a future version. For OpenSearch 2.0.0+, use security.tls.http.adminDn instead.
cluster.security.tls.transport.caSecretobject{}Optional, secret that contains the ca certificate as ca.crt. If this and generate=true is set the existing CA cert from that secret is used to generate the node certs. In this case must contain ca.crt and ca.key fields
cluster.security.tls.transport.generatebooltrueIf set to true the operator will generate a CA and certificates for the cluster to use, if false secrets with existing certificates must be supplied
cluster.security.tls.transport.nodesDnlist[]Allowed Certificate DNs for nodes, only used when existing certificates are provided
cluster.security.tls.transport.perNodebooltrueSeparate certificate per node
cluster.security.tls.transport.secretobject{}Optional, name of a TLS secret that contains ca.crt, tls.key and tls.crt data. If ca.crt is in a different secret provide it via the caSecret field
cluster.security.tls.transport.durationstring"8760h"Duration controls the validity period of generated certificates (e.g. "8760h", "720h"). This is used only when generate is true.
cluster.security.tls.transport.enableHotReloadstringnilEnable hot reloading of TLS certificates so nodes pick up renewed certificates without a restart. Requires OpenSearch >= 2.19.1. Unset (~) defers to the operator: enabled on OpenSearch 3.x+, off below. Set true/false to override.
cluster.ingress.opensearch.enabledboolfalseEnable in

Deploy opensearch-cluster with OpenTenant

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