question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Elasticsearch: Resources created by chart are keyed off of clusterName rather than Release.Name

See original GitHub issue

Chart version: 7.1.0

Kubernetes version: 1.14

Kubernetes provider: Azure

Helm Version: 2.14

Describe the bug: The resources created by the chart are keyed off of the clusterName value, rather than Release.Name.

This doesn’t follow normal Helm patterns, meaning that if you run helm install elastic/elasticsearch twice (with different release names but not specifying a clusterName), the second deployment will fail, as well as break the first one.

Steps to reproduce:

  1. helm install --name dude-elasticsearch elastic/elasticsearch
  2. Wait for cluster to come up.
  3. helm install --name sweet-elasticsearch elastic/elasticsearch
  4. Observe brokenness of dude-elasticsearch, and failure of deployment of sweet-elasticsearch.

Expected behavior: It should be possible to run the chart twice without having to specify a clusterName and end up with two working Elasticsearch clusters within k8s.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:20 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
jmlrtcommented, Nov 24, 2020

Hi @desaintmartin, As mentionned in https://github.com/elastic/helm-charts/issues/150#issuecomment-499513145, despite there is good reasons for changing it, this is not something we will change before next major release (8.0.0), so yes the current naming is the way to go for now.

1reaction
desaintmartincommented, Jan 20, 2020

In fact, this would prevent deployment of two different ES Helm Releases in the same namespace if the clustername is the same. Could we have a hybrid approach where name is generated from both .Release.Name and cluster name (with maybe some intelligence to prevent duplication)?

Read more comments on GitHub >

github_iconTop Results From Across the Web

helm upgrade fails due to 'cannot patch "elasticsearch-master ...
I possible way to workaround is to use this chart with helm 3 but by using helm template instead of helm install/upgrade I...
Read more >
Cluster name setting | Elasticsearch Guide [8.5] | Elastic
See Cluster name setting. ... Brilliant speakers. The latest Elastic release updates. Expert advice from the solution developers. Networking with the industry's ...
Read more >
elasticsearch 8.5.1 - Artifact Hub
Official Elastic helm chart for Elasticsearch. ... Instead, use the version of the chart corresponding to your ES minor version. Used to set...
Read more >
Configure charts using globals - GitLab Docs
The chart will template the hostname of the service (and current .Release.Name ) to create the proper internal serviceName. registry.servicePort, String ...
Read more >
aws-cdk/aws-eks module - AWS Documentation
Vpc; const cluster1 = new eks.Cluster(this, 'MyCluster', { kubectlLayer: layer, vpc, clusterName: 'cluster-name', version ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found