it-at-m/helm-charts

[dave] Improve Elasticsearch integration

Open

#106 opened on Mar 21, 2025

View on GitHub
 (4 comments) (0 reactions) (0 assignees)Go Template (6 forks)auto 404
davehelp wanted

Repository metrics

Stars
 (9 stars)
PR merge metrics
 (PR metrics pending)

Description

The chart currently deploys the Bitnami Elasticsearch chart as a subchart. However, it isn't automatically integrated into the main application:

  1. The subchart by default disables HTTPS, but DAVe requires HTTPS. Hence we need to set elasticsearch.security.enabled: true and elasticsearch.security.tls.autoGenerated: true
  2. The CA cert fingerprint needs to be manually entered in the backend.extraEnvVars.env["elasticsearch.http-ca-certificate"] value
  3. The password needs to be specified manually in two subcharts (backend.credentials.ELASTICSEARCH_PASSWORD and elasticsearch.security.elasticPassword)
    • This can be mitigated by using #105

I'm still missing a smart way to automate the second point. Maybe a Job that reads the CA cert from the Kubernetes Secret and writes the Fingerprint into a ConfigMap, that can then be read into an environment variable?

Contributor guide