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.

Getting Stateful Set error while deploying elasticsearch in EKS cluster

See original GitHub issue

Chart version: Latest Kubernetes version: 1.19 Kubernetes provider: E.g. GKE (Google Kubernetes Engine) EKS Helm Version: v3

helm get release output

e.g. helm get elasticsearch (replace elasticsearch with the name of your helm release)

Be careful to obfuscate every secrets (credentials, token, public IP, …) that could be visible in the output before copy-pasting.

If you find some secrets in plain text in helm get release output you should use Kubernetes Secrets to managed them is a secure way (see Security Example).

Output of helm get release

Error: template: elasticsearch/templates/statefulset.yaml:298:27: executing "elasticsearch/templates/statefulset.yaml" at <.Values.roles.master>: can't evaluate field master in type interface {}

Describe the bug:

Steps to reproduce:

Expected behavior:

Provide logs and/or server output (if relevant):

Be careful to obfuscate every secrets (credentials, token, public IP, …) that could be visible in the output before copy-pasting

Any additional context:

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
Dhanabalan-popcommented, Jun 4, 2021

when I try to install helm install elasticsearch using below commands, receiving error helm repo add elastic https://helm.elastic.co curl -O https://raw.githubusercontent.com/elastic/helm-charts/master/elasticsearch/values.yaml helm install --name elasticsearch elastic/elasticsearch -f ./values.yaml

Error:

Error: template: elasticsearch/templates/statefulset.yaml:298:27: executing “elasticsearch/templates/statefulset.yaml” at <.Values.roles.master>: can’t evaluate field master in type interface {}

0reactions
botelastic[bot]commented, Nov 17, 2021

This issue has been automatically closed because it has not had recent activity since being marked as stale.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting methods | Elastic Cloud on Kubernetes [2.5]
First, check the StatefulSets to verify if the current number of replicas match the desired number of replicas. kubectl get statefulset NAME DESIRED...
Read more >
AWS EKS ELK Elasticsearch container running into an error
It was happening due to the fact, Elastic-search has two different image tag ... x.x So depending on the CPU type, I was...
Read more >
helm upgrade fails due to 'cannot patch "elasticsearch-master ...
EKS. Helm Version: v3.0.2. helm get release output ... with kind StatefulSet: StatefulSet.apps "elasticsearch-master" is invalid: spec: ...
Read more >
elasticsearch installation in helm fails with statefulset error
elasticsearch installation in helm fails with statefulset error. I'm installing elasticsearch in my EKS cluster using below commands
Read more >
Elasticsearch on Kubernetes: How to Run HA ELK stack on ...
A StatefulSet in Kubernetes requires a headless service to provide network identity to the pods it creates. The following command and the spec ......
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