# Kibana helmchart throws error

**URL:** <https://discuss.elastic.co/t/kibana-helmchart-throws-error/330101>\
**Category:** Kibana\
**Created:** [April 17, 2023, 8:27am UTC](https://discuss.elastic.co/t/kibana-helmchart-throws-error/330101 "2023-04-17T08:27:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arun\_udaiyar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/arun_udaiyar/32/119870_2.png) [@arun\_udaiyar](https://discuss.elastic.co/u/arun_udaiyar)\
**Post date:** [April 17, 2023, 8:27am UTC](https://discuss.elastic.co/t/kibana-helmchart-throws-error/330101/1 "2023-04-17T08:27:45Z")

</div>

Hi Team,  
I have used helmchart to deploy the stack and i have created own self-signed using openssl as per the documentation. seems fine for master, data and client communication.

```auto

root@N81111:/mnt/d/elasticsearch# kubectl get pod -n de-elasticsearch
NAME READY STATUS RESTARTS AGE
elasticsearch-client-0 2/2 Running 0 2m1s
elasticsearch-client-1 2/2 Running 0 2m
elasticsearch-data-0 2/2 Running 0 13h
elasticsearch-data-1 2/2 Running 0 19h
elasticsearch-data-2 2/2 Running 0 19h
elasticsearch-master-0 2/2 Running 0 6h59m
elasticsearch-master-1 2/2 Running 0 5h31m
elasticsearch-master-2 2/2 Running 0 20h
pre-install-kibana-kibana-jg6ds 1/2 Error 0 51m
root@N81111:/mnt/d/elasticsearch#

```

this is how it looks like.

But when i try deploying elasticsearch, the pre-install pod is throwing error as below.

```auto

Creating a new Elasticsearch token for Kibana
Cleaning previous token
DELETE undefined failed: Client network socket disconnected before secure TLS connection was established
Error: Client network socket disconnected before secure TLS connection was established
    at connResetException (node:internal/errors:705:14)
    at TLSSocket.onConnectEnd (node:_tls_wrap:1594:19)
    at TLSSocket.emit (node:events:525:35)
    at endReadableNT (node:internal/streams/readable:1358:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  code: 'ECONNRESET',
  path: null,
  host: 'elasticsearch-master',
  port: 9200,
  localAddress: undefined
}

```

Can someone help me on this..

---

<div class="post-metadata">

**Author:** ![arun\_udaiyar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/arun_udaiyar/32/119870_2.png) [@arun\_udaiyar](https://discuss.elastic.co/u/arun_udaiyar)\
**Post date:** [April 17, 2023, 8:40am UTC](https://discuss.elastic.co/t/kibana-helmchart-throws-error/330101/2 "2023-04-17T08:40:19Z")

</div>

This is my elasticsearch-master.yaml

```auto
---
clusterName: "elasticsearch"
nodeGroup: "master"

masterService: ""
# https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-node.html#node-roles
roles:
  - master

replicas: 3
minimumMasterNodes: 2

esMajorVersion: ""

# Allows you to add any config files in /usr/share/elasticsearch/config/
# such as elasticsearch.yml and log4j2.properties
esConfig:
  elasticsearch.yml: |
    #Turn on DEBUG logging for Discovery so we can figure out 
    logger.org.elasticsearch.gateway: DEBUG
    logger.org.elasticsearch.recovery: DEBUG
    logger.org.elasticsearch.deprecation: ERROR
    logger.org.elasticsearch.transport: DEBUG
    logger.org.elasticsearch.http: DEBUG

createCert: false
# Disable it to use your own elastic-credential Secret.
secret:
  enabled: true
  password: "Admin@123" # generated randomly if not defined
# the X-Pack license
extraEnvs:
  - name: ELASTIC_PASSWORD
    valueFrom:
      secretKeyRef:
        name: elasticsearch-master-credentials
        key: password
  - name: xpack.security.enabled
    value: "true"
  - name: xpack.security.transport.ssl.enabled
    value: "true"
  - name: xpack.security.http.ssl.enabled
    value: "true"
  - name: xpack.security.transport.ssl.verification_mode
    value: "certificate"
  - name: xpack.security.transport.ssl.key
    value: "/usr/share/elasticsearch/config/certs/tls.key"
  - name: xpack.security.transport.ssl.certificate
    value: "/usr/share/elasticsearch/config/certs/tls.crt"
  - name: xpack.security.transport.ssl.certificate_authorities
    value: "/usr/share/elasticsearch/config/certs/ca.crt"
  - name: xpack.security.http.ssl.key
    value: "/usr/share/elasticsearch/config/certs/tls.key"
  - name: xpack.security.http.ssl.certificate
    value: "/usr/share/elasticsearch/config/certs/tls.crt"
  - name: xpack.security.http.ssl.certificate_authorities
    value: "/usr/share/elasticsearch/config/certs/ca.crt"

secretMounts:
  - name: elastic-certificates
    secretName: es-cert
    path: /usr/share/elasticsearch/config/certs

image: "docker.elastic.co/elasticsearch/elasticsearch"
imageTag: "8.5.1"
imagePullPolicy: "IfNotPresent"

networkHost: "0.0.0.0"

protocol: https
httpPort: 9200
transportPort: 9300

```

this is my kibana.yaml

```auto
---
elasticsearchHosts: "https://elasticsearch-master:9200"
elasticsearchCertificateSecret: es-cert
elasticsearchCertificateAuthoritiesFile: ca.crt
elasticsearchCredentialSecret: elasticsearch-master-credentials

replicas: 1

extraEnvs:
  - name: ELASTIC_USERNAME
    valueFrom:
      secretKeyRef:
        name: elasticsearch-master-credentials
        key: username
  - name: ELASTIC_PASSWORD
    valueFrom:
      secretKeyRef:
        name: elasticsearch-master-credentials
        key: password
  - name: "NODE_OPTIONS"
    value: "--max-old-space-size=1800"

image: "docker.elastic.co/kibana/kibana"
imageTag: "8.5.1"
imagePullPolicy: "IfNotPresent"

protocol: http

secretMounts:
  - name: elastic-certificates
    secretName: es-cert
    path: /usr/share/kibana/config/certs

serverHost: "0.0.0.0"

httpPort: 5601

service:
  type: ClusterIP
  loadBalancerIP: ""
  port: 5601
  nodePort: ""
  labels: {}
  annotations: {}
  loadBalancerSourceRanges: []

##You can explicitly disable TLS for Kibana
http:
  tls:
    selfSignedCertificate:
      disabled: true

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 15, 2023, 8:41am UTC](https://discuss.elastic.co/t/kibana-helmchart-throws-error/330101/3 "2023-05-15T08:41:16Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
