# Kubernetes ingress for elasticsearch not working after enabling security

**URL:** <https://discuss.kubernetes.io/t/kubernetes-ingress-for-elasticsearch-not-working-after-enabling-security/14656>\
**Category:** General Discussions\
**Created:** [February 1, 2021, 10:01am UTC](https://discuss.kubernetes.io/t/kubernetes-ingress-for-elasticsearch-not-working-after-enabling-security/14656 "2021-02-01T10:01:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anoopkv](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@anoopkv](https://discuss.kubernetes.io/u/anoopkv)\
**Post date:** [February 1, 2021, 10:01am UTC](https://discuss.kubernetes.io/t/kubernetes-ingress-for-elasticsearch-not-working-after-enabling-security/14656/1 "2021-02-01T10:01:31Z")

</div>

Asking for help? Comment out what you need so we can get more information to help you!

### Cluster information:

Kubernetes version: Latest  
Cloud being used: bare-metal  
Installation method: Helm  
Host OS: RHEL

I am using [Official helm chart](https://github.com/elastic/helm-charts/tree/master/elasticsearch/examples/security) to install ELK stack on my on-premise VMWare hanzu k8s cluster.

An Ingress controller to the cluster is already created by k8s admin using [Contour](https://projectcontour.io/docs/main/github)

Following [this](https://www.pimwiddershoven.nl/entry/deploy-a-secure-instance-of-elasticsearch-on-kubernetes) instruction of creating self-signed certificate using elasticsearch-certutil. After all the setup and pods running when I try to connect to elastic search using the dns - getting this error

```
upstream connect error or disconnect/reset before headers

```

I am however able to access the same when security is disabled. Really appreciate any pointers
