Elasticsearch Helm Chart
Production-ready Elasticsearch cluster chart using the official Elastic image. Deploys multi-role clusters from a single
clusterProfile setting, with automated S3 backups, ILM lifecycle policies, cert-manager TLS, data tiers, and Grafana
dashboards included out of the box.
Install
HTTPS repository
helm repo add helmforge https://repo.helmforge.dev
helm repo update
helm install es helmforge/elasticsearch
OCI registry
helm install es oci://ghcr.io/helmforgedev/helm/elasticsearch
Quick Start
# Dev profile — single node, no TLS, fast startup
helm install es helmforge/elasticsearch
# Production HA — 3 master + 3 data + 2 coordinating, TLS, PDBs
helm install es helmforge/elasticsearch \
--set clusterProfile=production-ha \
--set security.enabled=true \
--set security.tls.certManager.enabled=true
Cluster Profiles
| Profile | Masters | Data | Coordinating | TLS | PDB |
dev | 1 (all roles) | — | — | No | No |
staging | 1 | 2 | — | No | Data only |
production-ha | 3 | 3 | 2 | Auto | All roles |
Read before choosing a profile:
- Dev profile — single node, local development
- Staging profile — small cluster, representative environments
- Production HA profile — full HA cluster, data tiers, monitoring
- Backup and restore — S3 snapshots and point-in-time recovery
- Security and TLS — cert-manager, password management, mTLS
Key Features
- Profile-driven —
dev, staging, production-ha presets with tuned defaults
- Multi-role StatefulSets — dedicated pods per role: master, data, coordinating
- Auto heap sizing — 50% rule applied from container memory limit (max 31 GB), no manual JVM tuning
- Split-brain prevention — validates an odd master count for multi-node clusters
- Data tiers — optional hot/warm nodes with separate storage classes and ILM attribute routing
- S3 snapshots — scheduled CronJob with configurable retention, repository auto-registration
- ILM policies — pre-built templates for logs, metrics, and traces (hot→warm→cold→delete)
- cert-manager TLS — issues multi-SAN certificates for internode and client traffic
- Monitoring — Prometheus exporter sidecar, ServiceMonitor, 6 alert rules, 3 Grafana dashboards
- Optional Kibana — auto-connected with shared TLS and Ingress support
- PodDisruptionBudgets — for master, data, coordinating, hot, and warm roles
- Authoritative configuration — one generated
elasticsearch.yml is mounted into every node role
- Independent ports — process listeners, Services, Kibana, and metrics ports are configurable independently
Configuration
Dev (single node)
# All defaults — clusterProfile: dev is the default
clusterName: dev-cluster
Staging (small cluster)
clusterProfile: staging
master:
persistence:
size: 20Gi
data:
persistence:
size: 100Gi
Production HA
clusterProfile: production-ha
clusterName: production-es
master:
persistence:
size: 20Gi
data:
persistence:
size: 500Gi
security:
enabled: true
tls:
certManager:
enabled: true
clusterIssuer: true
issuerName: letsencrypt-prod
backup:
enabled: true
schedule: "0 2 * * *"
s3:
bucket: my-es-backups
region: us-east-1
existingSecret: es-s3-creds
ilm:
logs:
enabled: true
metrics:
enabled: true
monitoring:
enabled: true
serviceMonitor:
enabled: true
prometheusRule:
enabled: true
grafana:
dashboards: true
Elasticsearch configuration and ports
The chart renders one elasticsearch.yml ConfigMap and mounts it at
/usr/share/elasticsearch/config/elasticsearch.yml in every Elasticsearch
container. Use extraConfig for additional settings. Chart-managed cluster,
discovery, security, and listener settings are reserved so all roles remain
consistent.
containerPorts:
http: 19200
transport: 19300
service:
port: 9200
extraConfig:
cluster.routing.allocation.disk.watermark.low: "82%"
service.port is the client-facing Kubernetes Service port. It targets the
named HTTP container port. Inter-node transport is exposed only by the role
headless Services.
The main Service selects coordinating nodes when present, then regular data
nodes, then an enabled data tier, and finally master nodes for the dev profile.
It never selects Kibana pods.
Elasticsearch requires vm.max_map_count=262144 on every Kubernetes node.
Configure it at the node level. sysctlInit.enabled is an opt-in fallback that
requires permission to run a privileged init container.
With Data Tiers
clusterProfile: production-ha
dataTiers:
hot:
enabled: true
replicas: 3
storage: 200Gi
storageClass: fast-ssd
warm:
enabled: true
replicas: 2
storage: 1Ti
storageClass: standard
Parameters
Global
| Parameter | Description | Default |
clusterProfile | Cluster preset: dev, staging, production-ha | dev |
namespaceOverride | Namespace for chart-managed namespaced resources | "" |
clusterName | Elasticsearch cluster name | helmforge-cluster |
image.repository | Elasticsearch image | docker.io/library/elasticsearch |
image.tag | Image tag | 9.5.5 |
containerPorts.http | Elasticsearch HTTP process listener | 9200 |
containerPorts.transport | Elasticsearch transport process listener | 9300 |
nameOverride | Override chart name | "" |
fullnameOverride | Override full release name | "" |
Master Nodes
| Parameter | Description | Default |
master.replicaCount | Override profile-driven replica count | profile-driven |
master.heapSize | JVM heap (auto-calculated if empty) | "" |
master.resources | CPU/memory requests and limits | profile-driven |
master.persistence.size | PVC size per master pod | profile-driven |
master.persistence.storageClass | Storage class | "" |
master.podAnnotations | Pod annotations | {} |
master.nodeSelector | Node selector | {} |
master.tolerations | Tolerations | [] |
Data Nodes
| Parameter | Description | Default |
data.replicaCount | Override profile-driven replica count | profile-driven |
data.heapSize | JVM heap (auto-calculated if empty) | "" |
data.resources | CPU/memory requests and limits | profile-driven |
data.persistence.size | PVC size per data pod | profile-driven |
data.persistence.storageClass | Storage class | "" |
Coordinating Nodes
| Parameter | Description | Default |
coordinating.replicaCount | Override profile-driven replica count | profile-driven |
coordinating.heapSize | JVM heap | "" |
coordinating.resources | CPU/memory requests and limits | profile-driven |
Security
| Parameter | Description | Default |
security.enabled | Enable X-Pack security (TLS + auth) | false (true in prod-ha) |
security.tls.certManager.enabled | Issue TLS via cert-manager | false |
security.tls.certManager.clusterIssuer | Use ClusterIssuer instead of Issuer | false |
security.tls.certManager.issuerName | Issuer/ClusterIssuer name | selfsigned-issuer |
security.existingTlsSecret | Pre-existing TLS secret (keys: ca.crt, tls.crt, tls.key) | "" |
security.existingCredentialsSecret | Pre-existing credentials secret | "" |
security.generatePasswords | Auto-generate passwords | true |
Backup
| Parameter | Description | Default |
backup.enabled | Enable scheduled S3 snapshots | false |
backup.schedule | Cron schedule | "0 2 * * *" |
backup.retention.days | Delete snapshots older than N days | 30 |
backup.s3.bucket | S3 bucket name | "" |
backup.s3.region | AWS region | us-east-1 |
backup.s3.endpoint | Custom endpoint (MinIO, GCS, etc.) | "" |
backup.s3.existingSecret | Secret with access-key / secret-key | "" |
backup.s3.existingSecretAccessKeyKey | Access-key field in the existing or generated Secret | access-key |
backup.s3.existingSecretSecretKeyKey | Secret-key field in the existing or generated Secret | secret-key |
backup.s3.credentialsFromPodIdentity | Use the Elasticsearch pod workload identity; bucket must exist | false |
backup.serviceAccount.create | Create the dedicated snapshot CronJob ServiceAccount | true |
backup.serviceAccount.name | Snapshot CronJob ServiceAccount name override | "" |
master.persistence.retentionPolicy.whenDeleted | Master PVC retention after StatefulSet deletion | "" |
master.persistence.retentionPolicy.whenScaled | Master PVC retention after scale-down | "" |
data.persistence.retentionPolicy.whenDeleted | Data PVC retention after StatefulSet deletion | "" |
data.persistence.retentionPolicy.whenScaled | Data PVC retention after scale-down | "" |
ILM Policies
| Parameter | Description | Default |
ilm.logs.enabled | Create helmforge-logs ILM policy | false |
ilm.logs.hotDays | Days in hot phase | 7 |
ilm.logs.warmDays | Days in warm phase | 30 |
ilm.logs.coldDays | Days in cold phase | 90 |
ilm.logs.deleteDays | Days until deletion | 180 |
ilm.metrics.enabled | Create helmforge-metrics ILM policy | false |
ilm.traces.enabled | Create helmforge-traces ILM policy | false |
Data Tiers
| Parameter | Description | Default |
dataTiers.hot.enabled | Enable dedicated hot tier nodes | false |
dataTiers.hot.replicas | Hot tier replica count | 2 |
dataTiers.hot.storage | Hot tier PVC size | 200Gi |
dataTiers.hot.storageClass | Hot tier storage class (e.g. fast-ssd) | "" |
dataTiers.warm.enabled | Enable dedicated warm tier nodes | false |
dataTiers.warm.replicas | Warm tier replica count | 2 |
dataTiers.warm.storage | Warm tier PVC size | 1Ti |
dataTiers.warm.storageClass | Warm tier storage class (e.g. standard) | "" |
Monitoring
| Parameter | Description | Default |
monitoring.enabled | Deploy Prometheus exporter sidecar | false |
monitoring.containerPort | Exporter process listener | 9114 |
monitoring.service.port | Metrics Service port | 9114 |
monitoring.image.repository | Exporter image | prometheuscommunity/elasticsearch-exporter |
monitoring.image.tag | Exporter tag | v1.8.0 |
monitoring.serviceMonitor.enabled | Create ServiceMonitor | false |
monitoring.serviceMonitor.interval | Scrape interval | 30s |
monitoring.prometheusRule.enabled | Create PrometheusRule (6 alerts) | false |
monitoring.grafana.dashboards | Create Grafana dashboard ConfigMaps | false |
Kibana
| Parameter | Description | Default |
kibana.enabled | Deploy Kibana alongside Elasticsearch | false |
kibana.image.tag | Kibana version (must match ES version) | 9.5.5 |
kibana.replicaCount | Kibana replica count | 1 |
kibana.containerPort | Kibana process listener | 5601 |
kibana.service.port | Kibana Service port | 5601 |
kibana.ingress.enabled | Expose Kibana via Ingress | false |
kibana.ingress.hosts | Ingress hostnames | [kibana.example.com] |
Service
| Parameter | Description | Default |
service.type | Service type for HTTP access | ClusterIP |
service.port | Client-facing Elasticsearch HTTP Service port | 9200 |
service.ipFamilyPolicy | Service dual-stack policy for HTTP and headless Services | null |
service.ipFamilies | Service IP families for HTTP and headless Services | [] |
Service Account
| Parameter | Description | Default |
serviceAccount.create | Create a dedicated ServiceAccount | false |
serviceAccount.name | ServiceAccount name override | "" |
serviceAccount.automountServiceAccountToken | Mount Kubernetes API token into workload pods | false |
Gateway API and External Secrets
gatewayAPI:
enabled: true
httpRoutes:
- name: public
hostnames: [elasticsearch.example.com]
parentRefs:
- name: shared-gateway
namespace: gateway-system
externalSecrets:
enabled: true
refreshInterval: 1h
items:
- name: credentials
spec:
secretStoreRef:
name: production-secrets
kind: ClusterSecretStore
target:
creationPolicy: Owner
data:
- secretKey: elastic-password
remoteRef:
key: elasticsearch
property: elastic-password
- secretKey: kibana-system-password
remoteRef:
key: elasticsearch
property: kibana-system-password
The Gateway controller and External Secrets Operator CRDs must already exist.
The chart does not install either controller.
Security Scan
Security Scan: elasticsearch
| Framework | Score |
| MITRE + NSA + SOC2 | 86.36364% |
Security posture acceptable.
Other
| Parameter | Description | Default |
sysctlInit.enabled | Set vm.max_map_count=262144 through a privileged init container | false |
terminationGracePeriodSeconds | Grace period for pod shutdown | 120 |
extraEnv | Extra environment variables | [] |
extraVolumes | Extra volumes | [] |
extraVolumeMounts | Extra volume mounts | [] |
extraConfig | Additional mounted elasticsearch.yml settings | {} |
nodeSelector | Global node selector | {} |
tolerations | Global tolerations | [] |
priorityClassName | Priority class | "" |
Upgrade Notes
Version 2 breaking changes
Version 2 fixes the previously generated-but-unmou