UNCLASSIFIED - NO CUI

Default readiness probe uses nc with no chart-native way to override it across all nodeSets

Problem

The ECK operator injects a default readiness probe that runs exec + nc (or ncat) against the Elasticsearch HTTP port. That breaks in hardened environments two ways:

  1. nc isn't always there. Hardened images strip nmap-ncat because the scanner flags it. When the binary is missing the probe exec-fails. Kubelet marks the pod unready for the wrong reason and the real cluster health gets masked.
  2. nc trips Twistlock. Runtime policy flags nc inside a container as suspicious network binary execution. The alert count isn't huge, but it's recurring noise that we have to triage and dismiss against what is just a readiness probe. Over time that erodes trust in the alerts we actually want to act on.

ECK already runs a localhost readiness HTTP server on port 8080 inside every Elasticsearch container so kubelet can probe without TLS or auth. A native tcpSocket probe against 8080 covers the same ground without invoking anything inside the container.

What's missing in the chart

The chart has no clean way to override the readiness probe. The only option today is per-index post-render kustomize patches in our values overlay, targeting /spec/nodeSets/0, /spec/nodeSets/1, etc.

Proposed direction

Add a chart-native way to set the readiness probe across every nodeSet. Something like elasticsearch.common.readinessProbe, opt-in (default {}, ECK default behavior preserved), with per-nodeSet override taking precedence when set. Same shape as elasticsearch.common.config and elasticsearch.common.initContainers that already exist.

Edited by Carl Lawson