# ECK responds empty via curl

**URL:** <https://discuss.elastic.co/t/eck-responds-empty-via-curl/266893>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Created:** [March 11, 2021, 6:55am UTC](https://discuss.elastic.co/t/eck-responds-empty-via-curl/266893 "2021-03-11T06:55:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tomonori-YOSHIKAWA](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tomonori-yoshikawa/32/85365_2.png) [@Tomonori-YOSHIKAWA](https://discuss.elastic.co/u/Tomonori-YOSHIKAWA)\
**Post date:** [March 11, 2021, 6:55am UTC](https://discuss.elastic.co/t/eck-responds-empty-via-curl/266893/1 "2021-03-11T06:55:54Z")

</div>

I have deployed ECK and BANZAI logging on AKS, then trying sent logs to elasticsearch via fluentd.  
No index have found on the Kibana discovery, I deployed a CentOS pod and verified its HTTP connectivity. But empty responded as follows.

```auto
    sh-4.2# curl -v http://my-elasticsearch-es-http.elastic-system.svc.cluster.local:9200
    * About to connect() to my-elasticsearch-es-http.elastic-system.svc.cluster.local port 9200 (#0)
    * Trying 10.0.85.166...
    * Connected to my-elasticsearch-es-http.elastic-system.svc.cluster.local (10.0.85.166) port 9200 (#0)
    > GET / HTTP/1.1
    > User-Agent: curl/7.29.0
    > Host: my-elasticsearch-es-http.elastic-system.svc.cluster.local:9200
    > Accept: */*
    >
    * Empty reply from server
    * Connection #0 to host my-elasticsearch-es-http.elastic-system.svc.cluster.local left intact
    curl: (52) Empty reply from server
    sh-4.2#

```

On the other hands, I had deployed elasticsearch via helm provided by Rancher. At the time the elasticsearch responded properly, and Kibana showed an index from fluentd via BANZAI flow.

```auto
    sh-4.2# curl -v http://elasticsearch-master.my-efk-p-988c4.svc.cluster.local:9200
    * About to connect() to elasticsearch-master.my-efk-p-988c4.svc.cluster.local port 9200 (#0)
    * Trying 10.0.79.80...
    * Connected to elasticsearch-master.my-efk-p-988c4.svc.cluster.local (10.0.79.80) port 9200 (#0)
    > GET / HTTP/1.1
    > User-Agent: curl/7.29.0
    > Host: elasticsearch-master.my-efk-p-988c4.svc.cluster.local:9200
    > Accept: */*
    >
    < HTTP/1.1 200 OK
    < content-type: application/json; charset=UTF-8
    < content-length: 517
    <
    {
      "name" : "elasticsearch-master-2",
      "cluster_name" : "elasticsearch",
      "cluster_uuid" : "gx-LF7UhQLK1LAcv0F_4Ug",
      "version" : {
        "number" : "7.3.0",
        "build_flavor" : "default",
        "build_type" : "docker",
        "build_hash" : "de777fa",
        "build_date" : "2019-07-24T18:30:11.767338Z",
        "build_snapshot" : false,
        "lucene_version" : "8.1.0",
        "minimum_wire_compatibility_version" : "6.8.0",
        "minimum_index_compatibility_version" : "6.0.0-beta1"
      },
      "tagline" : "You Know, for Search"
    }
    * Connection #0 to host elasticsearch-master.my-efk-p-988c4.svc.cluster.local left intact
    sh-4.2#

```

I am wondering what I am missing. Anyone, please give me what I should do in the ECK case ?

---

<div class="post-metadata">

**Author:** ![sebgl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sebgl/32/48702_2.png) [@sebgl](https://discuss.elastic.co/u/sebgl)\
**Post date:** [March 15, 2021, 8:58am UTC](https://discuss.elastic.co/t/eck-responds-empty-via-curl/266893/2 "2021-03-15T08:58:32Z")

</div>

ECK defaults to deploying Elasticsearch with TLS enabled. Have you tried doing a request using `https` instead of `http`?

---

<div class="post-metadata">

**Author:** ![Tomonori-YOSHIKAWA](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tomonori-yoshikawa/32/85365_2.png) [@Tomonori-YOSHIKAWA](https://discuss.elastic.co/u/Tomonori-YOSHIKAWA)\
**Post date:** [March 16, 2021, 12:50am UTC](https://discuss.elastic.co/t/eck-responds-empty-via-curl/266893/3 "2021-03-16T00:50:35Z")

</div>

@sebgl  
Thanks for your advice, https attempt ended up successfully !!  
BTW, can you please tell me how to disable the TLS requirement ?

---

<div class="post-metadata">

**Author:** ![Thibault\_Richard](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thibault_richard/32/50513_2.png) [@Thibault\_Richard](https://discuss.elastic.co/u/Thibault_Richard)\
**Post date:** [March 16, 2021, 10:08am UTC](https://discuss.elastic.co/t/eck-responds-empty-via-curl/266893/4 "2021-03-16T10:08:50Z")

</div>

Here is the documentation to disable TLS: [TLS certificates | Elastic Cloud on Kubernetes [1.4] | Elastic](https://www.elastic.co/guide/en/cloud-on-k8s/1.4/k8s-tls-certificates.html#k8s-disable-tls).

---

<div class="post-metadata">

**Author:** ![Tomonori-YOSHIKAWA](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tomonori-yoshikawa/32/85365_2.png) [@Tomonori-YOSHIKAWA](https://discuss.elastic.co/u/Tomonori-YOSHIKAWA)\
**Post date:** [March 16, 2021, 11:51pm UTC](https://discuss.elastic.co/t/eck-responds-empty-via-curl/266893/5 "2021-03-16T23:51:29Z")

</div>

@Thibault_Richard

Thanks a lot !!

---

<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:** [April 13, 2021, 11:51pm UTC](https://discuss.elastic.co/t/eck-responds-empty-via-curl/266893/6 "2021-04-13T23:51:31Z")

</div>

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