Skip to content

cluster-eck Cluster Chart : Elasticsearch

Artifacthub

Configure the Elastic Cloud on Kubernetes (ECK) operator and the Elasticsearch clusters and Kibana instances it manages.

This chart is part of the cluster-xxx startx helm chart series that doesn’t necessarily deploy pods but rather represent a cluster configuration state orchestrated by gitops tools like ArgoCD.

This chart installs the certified elasticsearch-eck-operator-certified operator of Elastic and manages:

  • the Elasticsearch clusters (Elasticsearch CR): version, node sets, configuration, resources and volumes, with an optional route
  • the Kibana instances (Kibana CR) connected to these clusters, with an optional route
  • the kernel setting required by Elasticsearch on the nodes (Tuned CR of the Node Tuning Operator)
  • the secrets referenced by these resources (secure settings, users, certificates), from values or through an ExternalSecret

The other resources of the operator (Elastic Agent, Beats, Logstash, APM Server…) are not managed by this chart.

Requirements and guidelines

Read the startx helm-repository homepage for more information on how to use these resources.

Prerequisites

  • Access to the certified-operators catalog of the software catalog
  • cluster-admin privileges
  • A storage class for the data volumes of Elasticsearch (the default one unless storageClassName is set)
  • The Elastic resources must be created in a regular namespace: never default, kube-* or openshift-*, where the security context constraints are not applied as Elasticsearch expects
  • The namespace must be attached to the default pod network. The operator manages Elasticsearch and Kibana through their HTTP services: a namespace attached to a primary user-defined network isolates them from the operator

The operator is installed in the openshift-operators namespace (AllNamespaces mode), so no dedicated OperatorGroup is created. The Elasticsearch clusters and the Kibana instances run in the default-eck namespace created by the project sub-chart, with the restricted-v2 security context constraint of OpenShift: no privileged init container is used, and the Elasticsearch plugins cannot be installed at runtime (build a custom image instead).

Virtual memory of the nodes

Elasticsearch maps its indices in memory and needs a high vm.max_map_count kernel setting on the nodes it runs on:

  • OpenShift nodes set vm.max_map_count to 262144 with their default tuning profile
  • Elastic recommends 1048576 in production for Elasticsearch 8.16 and later

The tuned block creates a Tuned resource raising this setting on the selected nodes, without reboot. Select the nodes running Elasticsearch with tuned.match, and extend the profile these nodes already use with tuned.include: openshift-node for the worker nodes, openshift-control-plane for the infra and control plane nodes. For a demonstration, node.store.allow_mmap: false in the configuration of a node set avoids the requirement, at the cost of the performance.

Objects created by the operator

Object Name Content
Service of the Elasticsearch API <name>-es-http Port 9200, HTTPS with a certificate generated by the operator
Secret of the elastic user <name>-es-elastic-user Key elastic: password of the built-in superuser
Secret of the public certificates <name>-es-http-certs-public Certificate authority to trust when calling the API
Service of Kibana <name>-kb-http Port 5601, HTTPS
oc -n default-eck get secret <name>-es-elastic-user -o go-template='{{.data.elastic | base64decode}}'

A route created by this chart (route.enabled) uses the passthrough termination by default: Elasticsearch or Kibana presents its own certificate, self-signed by the operator unless spec.http.tls.certificate references a tls secret. Elasticsearch can also be exposed with a service of type LoadBalancer (spec.http.service.spec.type), for example with the cluster-metallb chart.

Deploy this helm chart on openshift

1. Connect to your Openshift cluster

oc login -t <token> <cluster-url>

2. Install the repository

helm repo add startx https://helm-repository.readthedocs.io/en/latest/repos/stable/

3. Get information about this chart

helm show chart startx/cluster-eck

4. Install this chart

Default values

The default values keep every feature disabled and render nothing: the Elasticsearch clusters are specific to each environment and must be provided in a values file.

  • No Elasticsearch cluster, no Kibana instance and no node tuning are created
  • The operator subscription and namespace are managed separately via the operator and project sub-charts (both disabled by default)
# base configuration running default configuration
helm install cluster-eck startx/cluster-eck

Full deployment with operator and project

Helm cannot create a custom resource before its API exists: install the namespace and the operator first, approve its InstallPlan (the subscription uses installPlanApproval: Manual), then enable the node tuning, an Elasticsearch cluster and Kibana.

# 1. namespace and operator
helm install cluster-eck startx/cluster-eck \
  --set project.enabled=true \
  --set operator.enabled=true
oc -n openshift-operators get installplan
oc -n openshift-operators patch installplan <name> --type merge -p '{"spec":{"approved":true}}'

# 2. node tuning, Elasticsearch cluster and Kibana, once the operator is running
cat > my-eck.yaml <<EOF
tuned:
  enabled: true
elasticsearch:
  enabled: true
  list:
    - name: default
      spec:
        version: 9.5.0
        nodeSets:
          - name: default
            count: 3
            podTemplate:
              spec:
                containers:
                  - name: elasticsearch
                    resources:
                      requests:
                        cpu: "1"
                        memory: 4Gi
                      limits:
                        memory: 4Gi
            volumeClaimTemplates:
              - metadata:
                  name: elasticsearch-data
                spec:
                  accessModes:
                    - ReadWriteOnce
                  resources:
                    requests:
                      storage: 50Gi
kibana:
  enabled: true
  list:
    - name: default
      route:
        enabled: true
      spec:
        version: 9.5.0
        count: 1
        elasticsearchRef:
          name: default
EOF
helm upgrade cluster-eck startx/cluster-eck -f my-eck.yaml \
  --set project.enabled=true \
  --set operator.enabled=true

Follow the deployment with oc -n default-eck get elasticsearch,kibana: the cluster is ready when its health is green.

Other available values

  • startx : startx Elasticsearch cluster (3 nodes, 4Gi of memory and a 50Gi volume each) and its Kibana (with a route) on the infra nodes, vm.max_map_count raised on the infra nodes, operator on the infra nodes (see values-startx.yaml)
  • startx_noinfra : same deployment on the worker nodes (see values-startx_noinfra.yaml)
helm install cluster-eck startx/cluster-eck -f https://raw.githubusercontent.com/startxfr/helm-repository/master/charts/cluster-eck/values-startx.yaml

Values files

Example values files shipped with the chart, to use with helm install -f <file> :

  • startx : context startx/default/infra; against values.yaml: differ on 22 keys, by top-level key: project (6), operator (5), context (4), tuned (3), … (see values-startx.yaml)
  • startx_noinfra : context startx/default/infra; against values-startx.yaml: differ on 5 keys, by top-level key: tuned (2), elasticsearch (1), kibana (1), operator (1) (see values-startx_noinfra.yaml)
  • examples/argocd/ : 5 example manifest(s) (see the ArgoCD or usage sections)
helm install cluster-eck startx/cluster-eck -f https://raw.githubusercontent.com/startxfr/helm-repository/master/charts/cluster-eck/values-startx.yaml

Values dictionary

context values dictionary

Key Default Description
context.scope myscope Name of the global scope for this application
context.cluster default Name of the cluster running this application
context.environment myenv Name of the environment (dev, factory, preprod, prod)
context.component mycomponent Component name of this application
context.app default-eck Application name
context.version 3.5.0 Version name of this application

externalSecretDefaults values dictionary

Key Default Description
externalSecretDefaults.apiVersion external-secrets.io/v1 API version of the ExternalSecret CRD
externalSecretDefaults.refreshInterval 1h How often the Secret is refreshed from the external store
externalSecretDefaults.secretStoreRef.name "" Name of the (Cluster)SecretStore, required as soon as a secret uses externalSecret
externalSecretDefaults.secretStoreRef.kind ClusterSecretStore Kind of the store (ClusterSecretStore or SecretStore)

tuned values dictionary

Key Default Description
tuned.enabled false Enable the creation of the Tuned resource (sync-wave 5, namespace openshift-cluster-node-tuning-operator)
tuned.hooked false Activate the resource as a helm hook
tuned.name openshift-elasticsearch Name of the Tuned resource and of its profile
tuned.maxMapCount 1048576 Value of the vm.max_map_count kernel setting
tuned.include openshift-node Profile of OpenShift extended by this one (openshift-control-plane for the infra and control plane nodes)
tuned.priority 20 Priority of the profile, the lowest value wins (the profiles of OpenShift use 30 and 40)
tuned.match worker nodes List of node labels (label, optional value): a node carrying one of them receives the profile

elasticsearch values dictionary

Key Default Description
elasticsearch.enabled false Enable the creation of the Elasticsearch resources (sync-wave 15)
elasticsearch.hooked false Activate the resources as helm hooks
elasticsearch.list [] List of Elasticsearch clusters
elasticsearch.list[].name Name of the cluster (required)
elasticsearch.list[].namespace project name Namespace of the cluster
elasticsearch.list[].labels {} Additional labels
elasticsearch.list[].route.enabled false Create the route <name>-es to the service <name>-es-http (sync-wave 20)
elasticsearch.list[].route.host generated Hostname of the route
elasticsearch.list[].route.annotations {} Additional annotations of the route
elasticsearch.list[].route.termination passthrough TLS termination (passthrough, reencrypt, edge)
elasticsearch.list[].route.tls {} Additional fields of the tls block (insecureEdgeTerminationPolicy defaults to Redirect)
elasticsearch.list[].spec Specification of the cluster, rendered as is (required)
…spec.version Version of Elasticsearch (required)
…spec.nodeSets Groups of nodes (required): name, count, config, podTemplate, volumeClaimTemplates
…spec.http Service and certificate of the HTTP layer
…spec.secureSettings Secrets added to the keystore of Elasticsearch
…spec.auth File realm users and roles (secrets)
…spec.monitoring Ship the logs and metrics of the cluster to a monitoring cluster
…spec.podDisruptionBudget, updateStrategy Availability during the voluntary disruptions and the rolling upgrades
…spec.volumeClaimDeletePolicy DeleteOnScaledownAndClusterDeletion Fate of the volumes when the cluster is scaled down or deleted

kibana values dictionary

Key Default Description
kibana.enabled false Enable the creation of the Kibana resources (sync-wave 30)
kibana.hooked false Activate the resources as helm hooks
kibana.list [] List of Kibana instances
kibana.list[].name Name of the instance (required)
kibana.list[].namespace project name Namespace of the instance
kibana.list[].labels {} Additional labels
kibana.list[].route.enabled false Create the route <name>-kb to the service <name>-kb-http (sync-wave 35)
kibana.list[].route.host, annotations, termination, tls Same keys as the route of an Elasticsearch cluster
kibana.list[].spec Specification of the instance, rendered as is (required)
…spec.version Version of Kibana (required)
…spec.count Number of Kibana pods
…spec.elasticsearchRef name (and namespace) of the Elasticsearch cluster used by Kibana
…spec.config Kibana configuration (kibana.yml)
…spec.podTemplate Pod template of Kibana

secrets values dictionary

Key Default Description
secrets.enabled false Enable the creation of the secrets (sync-wave 1)
secrets.list [] List of secrets
secrets.list[].name Name of the secret (required)
secrets.list[].namespace project name Namespace of the secret
secrets.list[].type Opaque Type of the secret
secrets.list[].labels {} Additional labels
secrets.list[].data Key/value pairs rendered as stringData (required without externalSecret)
secrets.list[].externalSecret {enabled: false} Source the secret from an external store (see External secrets)

project values dictionary

Key Default Description
project.enabled false Enable the project sub-chart (namespace of the Elastic resources)
project.project.name default-eck Namespace of the Elasticsearch clusters and Kibana instances
project.project.display_name Elasticsearch Display name of the namespace
project.project.description Elasticsearch clusters configured by STARTX Description of the namespace

operator values dictionary

Key Default Description
operator.enabled false Enable the operator sub-chart (subscription)
operator.subscription.name elasticsearch-eck-operator-certified Name of the Subscription and of the package
operator.subscription.namespace openshift-operators Namespace of the operator (AllNamespaces mode)
operator.subscription.version v3.5.0 Version of the operator (used with csv for startingCSV)
operator.subscription.operator.channel stable Channel of the subscription
operator.subscription.operator.installPlanApproval Manual Approval mode of the InstallPlans
operator.subscription.operator.source.name certified-operators Catalog source of the operator
operator.subscription.operator.config.infra false Run the operator on infra nodes
operator.operatorGroup.enabled false Disabled: openshift-operators already has a global OperatorGroup

Deploy with ArgoCD

Deploy via ArgoCD Application

Deploy cluster-eck using three dedicated ArgoCD Applications - one per concern - all sharing the same AppProject:

git clone https://gitlab.com/startx1/helm.git
cd helm-repository/charts/cluster-eck/examples/argocd/
oc apply -k .
Application Wave Enabled flags Destination
cluster-eck-project "1" project.enabled: true, all others false default-eck
cluster-eck-operator "5" operator.enabled: true (operatorGroup.enabled: false), all others false openshift-operators
cluster-eck-app "10" tuned, elasticsearch and kibana enabled: true, all others false default-eck

The automated sync policy ensures ArgoCD reconciles each concern independently whenever the chart or values drift from the desired state. The cluster-eck-app Application also creates the Tuned resource in the openshift-cluster-node-tuning-operator namespace, the only one where the Node Tuning Operator reads it. The Subscription uses installPlanApproval: Manual: the cluster-eck-app Application stays out of sync until the InstallPlan of the operator is approved (SkipDryRunOnMissingResource=true lets the sync start before the Elastic APIs exist).

External secrets

The secrets of the secrets block (secure settings of a snapshot repository, users of the file realm, certificates) can come from an external store (Vault, AWS Secrets Manager…) through the External Secrets Operator instead of the chart values. With externalSecret.enabled: true, the chart renders an ExternalSecret producing the Secret of the same name, namespace and type, so the Elastic resource referencing it is unchanged. Without externalSecret, the chart renders the Secret from data. Never commit a real credential in a values file.

externalSecretDefaults:
  secretStoreRef:
    name: vault-backend
    kind: ClusterSecretStore
secrets:
  enabled: true
  list:
    - name: es-snapshot-s3
      externalSecret:
        enabled: true
        remoteRefs:
          s3.client.default.access_key:
            key: ocp/eck/snapshot-s3
            property: access_key
          s3.client.default.secret_key:
            key: ocp/eck/snapshot-s3
            property: secret_key
elasticsearch:
  enabled: true
  list:
    - name: default
      spec:
        version: 9.5.0
        secureSettings:
          - secretName: es-snapshot-s3
        nodeSets:
          - name: default
            count: 3

An externalSecret block accepts secretStoreRef and refreshInterval (defaults: externalSecretDefaults), remoteRefs (map of secret key to ESO remoteRef) and the raw ESO fields data, dataFrom and template. Rendering fails when no store is set or when no key source is provided.

History

Release Date Description
21.3.361 2026-11-17 Initial chart creation
21.3.371 2026-11-19 Add Sail, oauthProxy, DSCInitialization, spot machines and annotations support
21.3.377 2026-11-19 full repository release: aligned pins, ArgoCD source fix, schemas and docs
21.3.379 2026-11-19 conventions wave: spelling, READMEs, ArgoCD examples and values-app, oauth switch
21.3.389 2026-11-19 full repository release: HTTPS dependency URLs, dependency-ordered release, schema guard, docs and examples
21.3.390 2026-11-20 full repository release: test fix, keepalived README, aligned pins
21.3.392 2026-11-21 full repository release: chaos-pipeline run parameters and authenticated health check, aligned pins
21.3.397 2026-11-21 stable repository release 21.3.397: all charts aligned, unifai delegation cap documentation
21.3.398 2026-11-21 project: dockercfg existingSecret; chaos-pipeline: empty default for scenarios, optional ClusterOperator final check; chaos schemas regenerated
21.3.410 2026-11-22 full repository release: README conventions (Values files, Deploy with ArgoCD), conventions page
21.3.412 2026-11-22 full repository release: internal pins on the previous published version (ADR-0006)
21.3.416 2026-11-23 stable update: chart fixes (project, cluster-mongo, cluster-oadp, cluster-pipeline, cluster-machine, example-catalog); cluster-dvo accepts the grafana keys next to its historical keys, which keep priority
21.3.418 2026-11-23 commit a stable release of all charts