Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

elastisearch 8.1.0 - helm error #1626

Closed
manzurshaikh opened this issue Mar 21, 2022 · 9 comments
Closed

elastisearch 8.1.0 - helm error #1626

manzurshaikh opened this issue Mar 21, 2022 · 9 comments
Assignees
Labels
question Further information is requested

Comments

@manzurshaikh
Copy link

Chart version:
7.17.1
Kubernetes version:
v1.20
Kubernetes provider: E.g. GKE (Google Kubernetes Engine)
Alicloud
Helm Version:
v3.7.2

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
manjur@MacBook-Pro elasticsearch % helm install elasticsearch elastic/elasticsearch -f values.yaml                      
Error: INSTALLATION FAILED: template: elasticsearch/templates/statefulset.yaml:303:27: executing "elasticsearch/templates/statefulset.yaml" at <.Values.roles.master>: can't evaluate field master in type interface {}

Describe the bug:

Steps to reproduce:

  1. helm install elasticsearch elastic/elasticsearch -f values.yaml

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

manjur@MacBook-Pro elasticsearch % helm install elasticsearch elastic/elasticsearch -f values.yaml                      
Error: INSTALLATION FAILED: template: elasticsearch/templates/statefulset.yaml:303:27: executing "elasticsearch/templates/statefulset.yaml" at <.Values.roles.master>: can't evaluate field master in type interface {}

Any additional context:

@ebuildy
Copy link
Contributor

ebuildy commented Mar 21, 2022

Please can you double check the vaues.yaml content?

@manzurshaikh
Copy link
Author

values-yaml.log

@manzurshaikh
Copy link
Author

please help i am not much familliar with elasticsearch to host into kubernetes.

@ebuildy
Copy link
Contributor

ebuildy commented Mar 21, 2022

Please use stackoverflow to ask help, github issue is for bugs or feature requests.

You are using Helm chart elasticsearch, version 7.17.1, values.yaml "syntax" is here : https://github.com/elastic/helm-charts/blob/v7.17.1/elasticsearch/values.yaml#L11

Dont use values.yaml from master branch!

@manzurshaikh
Copy link
Author

values-yaml.log

@ebuildy still the same,

Screenshot 2022-03-22 at 12 23 53 AM

@framsouza
Copy link
Contributor

hello, helm-chart version 8 it's not ready yet. we are working on it (no ETA) and for now the last helm-chart available is 7.17.1 as you can see here

@framsouza framsouza added the question Further information is requested label Mar 23, 2022
@framsouza framsouza self-assigned this Mar 23, 2022
@Sparkycz
Copy link

Sparkycz commented Mar 25, 2022

Having different versions of the Helm chart in the repository and in the GIT master is very confusing. Please get rid of it in the future.

@kashidsh1
Copy link

I just upgraded from 7.17.1 to 8.1.0. Now facing a similar issue.
helm upgrade --install elasticsearch elastic/elasticsearch -n gitlab -f elasticseach-values.yaml
Error: UPGRADE FAILED: template: elasticsearch/templates/statefulset.yaml:303:27: executing "elasticsearch/templates/statefulset.yaml" at <.Values.roles.master>: can't evaluate field master in type interface {}

The big concern is when I try to revert back to version 7.17.1, this time, I can't go back as the error says there is already a version moved on 8.1.0 (usr/share/elasticsearch/data) file has version maintained.

@jmlrt
Copy link
Member

jmlrt commented Apr 19, 2022

8.1.0 is still not supported. see #1594

@jmlrt jmlrt closed this as completed Apr 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

6 participants