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

Kibana-8.5.1 helm chart is not accepting list of elasticsearchHosts #1749

Open
rprasad17088 opened this issue Dec 23, 2022 · 0 comments
Open

Comments

@rprasad17088
Copy link

rprasad17088 commented Dec 23, 2022

Chart version :: kibana-8.5.1

K8S version :: 1.24

Kubernetes provider: EKS

Helm Version: v3.7.0

Describe the bug: Kibana-8.5.1 helm chart is not accepting list of elasticsearchHosts and pre-install-kibana job is failing with below error.
Creating a new Elasticsearch token for Kibana
Cleaning previous token
TypeError [ERR_INVALID_URL]: Invalid URL
at new NodeError (node:internal/errors:387:5)
at URL.onParseError (node:internal/url:565:9)
at new URL (node:internal/url:641:5)
at Object.request (node:https:343:32)
at /usr/share/kibana/helm-scripts/..2022_12_23_15_07_50.1718852878/manage-es-token.js:64:27
at new Promise ()
at requestPromise (/usr/share/kibana/helm-scripts/..2022_12_23_15_07_50.1718852878/manage-es-token.js:63:10)
at createEsToken (/usr/share/kibana/helm-scripts/..2022_12_23_15_07_50.1718852878/manage-es-token.js:100:10)
at Object. (/usr/share/kibana/helm-scripts/..2022_12_23_15_07_50.1718852878/manage-es-token.js:144:5)
at Module._compile (node:internal/modules/cjs/loader:1155:14) {
input: '["https://elasticsearch1.mydomain:9200","https://elasticsearch2.mydomain:9200","https://elasticsearch3.mydomain:9200"]/_security/service/elastic/kibana/credential/token/kibana-kibana',
code: 'ERR_INVALID_URL'

}

Steps to reproduce:

  1. Provide list of elasticsearch hosts as value of elasticsearchHosts in values.yaml like elasticsearchHosts: ["https://elasticsearch1.mydomain:9200","https://elasticsearch2.mydomain:9200","https://elasticsearch3.mydomain:9200"]
  2. Install this kibana helm chart

Expected behavior:
Kibana helm chart should accept list of elasticsearchHosts to avoid fault tolerance if some node of elasticsearch cluster becomes unavailable

Log from pre-install-kibana-kibana-fbl5l pod
Creating a new Elasticsearch token for Kibana
Cleaning previous token
TypeError [ERR_INVALID_URL]: Invalid URL
at new NodeError (node:internal/errors:387:5)
at URL.onParseError (node:internal/url:565:9)
at new URL (node:internal/url:641:5)
at Object.request (node:https:343:32)
at /usr/share/kibana/helm-scripts/..2022_12_23_15_07_50.1718852878/manage-es-token.js:64:27
at new Promise ()
at requestPromise (/usr/share/kibana/helm-scripts/..2022_12_23_15_07_50.1718852878/manage-es-token.js:63:10)
at createEsToken (/usr/share/kibana/helm-scripts/..2022_12_23_15_07_50.1718852878/manage-es-token.js:100:10)
at Object. (/usr/share/kibana/helm-scripts/..2022_12_23_15_07_50.1718852878/manage-es-token.js:144:5)
at Module._compile (node:internal/modules/cjs/loader:1155:14) {
input: '["https://elasticsearch1.mydomain:9200","https://elasticsearch2.mydomain:9200","https://elasticsearch3.mydomain:9200"]/_security/service/elastic/kibana/credential/token/kibana-kibana',
code: 'ERR_INVALID_URL'

}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant