Elasticsearch: Resources created by chart are keyed off of clusterName rather than Release.Name
See original GitHub issueChart 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:
helm install --name dude-elasticsearch elastic/elasticsearch
- Wait for cluster to come up.
helm install --name sweet-elasticsearch elastic/elasticsearch
- 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:
- Created 4 years ago
- Comments:20 (9 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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)?