elasticsearch

by QuenchWorks

Helm chartv0.0.33App 9.5.7SSPL-1.0Verified publisher

Distributed search and analytics engine. Hardened by QuenchWorks as a minimal, nonroot, CVE-gated image, cosign-signed and pinned by digest.

About this chart

Quenchworks Elasticsearch

LICENSE -- NOT OPEN SOURCE. Elasticsearch's default distribution is dual SSPL-1.0 / Elastic License 2.0 -- NEITHER is OSI-approved open source. Do not represent it as open source. CLEAN ALTERNATIVE: OpenSearch (Apache-2.0) is the truly-open drop-in fork of Elasticsearch -- prefer it for new deployments. This chart exists for parity/migration only. CAUTION TIER.

Hardened Elasticsearch on a minimal, nonroot, CVE-gated image pinned by digest. Runs on the hardened Wolfi-packaged OpenJDK 21 (the bundled JDK is dropped so the Wolfi JDK stays the scanned CVE surface). Single-node by default; the image writes elasticsearch.yml from ES_* env.

Install

helm install es oci://ghcr.io/quenchworks/charts/elasticsearch

Then query it:

kubectl run q --rm -it --image=curlimages/curl --restart=Never -- \
  curl http://es-elasticsearch:9200/_cluster/health

Verify the image

cosign verify ghcr.io/quenchworks/images/elasticsearch \
  --certificate-identity-regexp 'https://github.com/quenchworks/.+' \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

Each image also ships an SPDX SBOM and SLSA build provenance as attestations. Verify them with the GitHub CLI:

gh attestation verify oci://ghcr.io/quenchworks/images/elasticsearch \
  --owner quenchworks

Values

KeyDefaultNotes
image.repositoryghcr.io/quenchworks/images/elasticsearch
image.digest(CI-written)Required. Charts pin by digest, never a tag.
replicaCount1Single node; multi-node cluster is a follow-up.
config.clusterNamequench-elasticsearch
config.discoveryTypesingle-nodeRelaxes production bootstrap checks.
config.securityDisabledtruexpack.security off (internal use behind the NetworkPolicy).
config.heapSize512mJVM heap (-Xms/-Xmx).
config.extraConfig""Raw YAML appended to elasticsearch.yml (ES_CONFIG_EXTRA).
service.httpsPort443HTTPS Service port with tls.enabled (the sidecar's 8443); httpPort is then not published
tls.enabledfalsean nginx sidecar serves the API over HTTPS on 8443; Elasticsearch HTTP binds to loopback (plain 9200 unreachable)
tls.existingSecret""a kubernetes.io/tls Secret to use (1st choice)
tls.certManager.enabledfalserequest a cert-manager Certificate from tls.certManager.issuerRef (2nd choice)
tls.selfSigned.validityDays365otherwise Helm generates a CA + certificate, kept across upgrades
tlsProxy.image.digestpinnedthe QuenchWorks nginx used as the TLS sidecar
persistence.enabledtrue16Gi PVC at /data.
service.httpPort9200REST API.
service.transportPort9300Node transport (headless).
networkPolicy.enabledtrueRestricts HTTP ingress to the release namespace.
podDisruptionBudget.enabledtrueminAvailable: 1.
ingress.enabledfalseCreate an Ingress for this chart. HTTP only.
ingress.className""IngressClass to claim it. Empty leaves it unset, so the cluster default applies.
ingress.annotations{}Controller annotations (rewrite targets, body size, cert-manager issuer, ...).
ingress.servicePortnullBackend port. Unset resolves service.port, then service.ports.http / .https.
ingress.hosts[]e.g. [{host: app.example.com}]. A host with no paths gets a single / Prefix path.
ingress.tls[]Standard Ingress TLS list, e.g. [{hosts: [app.example.com], secretName: app-tls}].

Plus the shared quench-common knobs (scheduling, probes, sidecars, extra env/volumes, security contexts).

Security

Runs nonroot (uid 1001) on a read-only root filesystem with all capabilities dropped. Config (/conf), logs (/var/log/elasticsearch) and /tmp are writable emptyDir mounts; data lives on the persistent /data volume (with ES_TMPDIR at /data/tmp). /tmp MUST be writable: the ES 9.x entitlement agent attaches over a Unix socket at /tmp/.java_pid<pid> and the node will not boot otherwise.

xpack.security is disabled by default for an internal deployment; enable it (config.securityDisabled=false) and configure TLS for anything exposed beyond the cluster boundary.

Notes

Single node. Multi-node clusters and security (TLS + auth) are tracked follow-ups. Depends on the quench-common library chart, pulled from oci://ghcr.io/quenchworks/charts/quench-common.

Deploy elasticsearch with OpenTenant

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