# How can I have my Kibana server talk with my Elastic server in Kubernetes environment?

**URL:** <https://discuss.elastic.co/t/how-can-i-have-my-kibana-server-talk-with-my-elastic-server-in-kubernetes-environment/164911>\
**Category:** Kibana\
**Tags:** docker\
**Created:** [January 19, 2019, 8:45pm UTC](https://discuss.elastic.co/t/how-can-i-have-my-kibana-server-talk-with-my-elastic-server-in-kubernetes-environment/164911 "2019-01-19T20:45:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Riduidel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/riduidel/32/39970_2.png) [@Riduidel](https://discuss.elastic.co/u/Riduidel)\
**Post date:** [January 19, 2019, 8:45pm UTC](https://discuss.elastic.co/t/how-can-i-have-my-kibana-server-talk-with-my-elastic-server-in-kubernetes-environment/164911/1 "2019-01-19T20:45:31Z")

</div>

I've already asked this question on [StackOverflow](https://stackoverflow.com/q/54260959/15619), but let me paraphrase it

> I'm trying to deploy Elastic and Kibana in a Kubernetes cluster.
> 
> I have installed Elastic using Helm chart :
> 
> ```auto
> helm repo add elastic https://helm.elastic.co
> helm repo update
> helm install stable/elasticsearch --namespace elastic --name elasticsearch --set imageTag=6.5.4
> 
> ```
> 
> And Kibana using Helm chart :
> 
> ```auto
> helm install elastic/kibana --namespace elastic --name kibana --set imageTag=6.5.4,elasticsearchURL=http://elasticsearch-client.elastic.svc.cluster.local:9200
> 
> ```
> 
> I've checked from my Kibana pod, and this URL is reachable and produce the following result
> 
> ```auto
> curl -v http://elasticsearch-client:9200
> * About to connect() to elasticsearch-client port 9200 (#0)
> * Trying 10.19.251.82...
> * Connected to elasticsearch-client (10.19.251.82) port 9200 (#0)
> > GET / HTTP/1.1
> > User-Agent: curl/7.29.0
> > Host: elasticsearch-client:9200
> > Accept: */*
> >
> < HTTP/1.1 200 OK
> < content-type: application/json; charset=UTF-8
> < content-length: 519
> <
> {
> "name" : "elasticsearch-client-8666954ffb-kthcx",
> "cluster_name" : "elasticsearch",
> "cluster_uuid" : "-MT_zbKySiad0jDJVc1ViQ",
> "version" : {
> "number" : "6.5.4",
> "build_flavor" : "oss",
> "build_type" : "tar",
> "build_hash" : "d2ef93d",
> "build_date" : "2018-12-17T21:17:40.758843Z",
> "build_snapshot" : false,
> "lucene_version" : "7.5.0",
> "minimum_wire_compatibility_version" : "5.6.0",
> "minimum_index_compatibility_version" : "5.0.0"
> },
> "tagline" : "You Know, for Search"
> }
> 
> ```
> 
> The command line used in the Kibana pod to start (generated by the helm chart) is
> 
> ```auto
> /usr/share/kibana/bin/../node/bin/node --no-warnings /usr/share/kibana/bin/../src/cli --cpu.cgroup.path.override=/ --cpuacct.cgroup.path.override=/ --elasticsearch.url=http://elasticsearch-client:9200
> 
> ```
> 
> So it seems the Elastic cluster url is the right one, and reachable.
> 
> However, when I show the UI in my browser, I get the following page
> 
> [![My Kibana UI seems to indicates an error and an invalid version](https://us1.discourse-cdn.com/elastic/original/3X/b/1/b102755f02e412bae56841e6670b3de3fb2d8ae1.png)](https://i.stack.imgur.com/xc28H.png)
> 
> So to sum up, both versions are identical :
> 
> - [docker.elastic.co/elasticsearch/elasticsearch-oss:6.5.4](http://docker.elastic.co/elasticsearch/elasticsearch-oss:6.5.4)
> - [docker.elastic.co/kibana/kibana:6.5.4](http://docker.elastic.co/kibana/kibana:6.5.4)
> 
> Elasticsearch url is correct, but Kibana don't want to access Elasticsearch

What is specially interesting is [the oldest answer](https://stackoverflow.com/a/54263391/15619), which expose a situation I can reproduce : when using the helm chart, I can set the elasticsearch.url. But it seems like the kibana application in fact uses the elasticsearch property, which can't be set from the helm chart. So, what can I do to have Kibana working without resort to using directly the docker image in a deployment (in other words, while continuing to use the kibana helm chart) ?

---

<div class="post-metadata">

**Author:** ![Riduidel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/riduidel/32/39970_2.png) [@Riduidel](https://discuss.elastic.co/u/Riduidel)\
**Post date:** [January 20, 2019, 5:48pm UTC](https://discuss.elastic.co/t/how-can-i-have-my-kibana-server-talk-with-my-elastic-server-in-kubernetes-environment/164911/2 "2019-01-20T17:48:24Z")

</div>

Oh damn, it appear switching to the kuibana-oss image did the trick. I however read before all the docs, and not any one mentionned that. Is it possible to add a log message to have things clear in case of error ?

---

<div class="post-metadata">

**Author:** ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)\
**Post date:** [January 21, 2019, 4:22pm UTC](https://discuss.elastic.co/t/how-can-i-have-my-kibana-server-talk-with-my-elastic-server-in-kubernetes-environment/164911/3 "2019-01-21T16:22:17Z")

</div>

@joshdover

Thanks!  
Bhavya

---

<div class="post-metadata">

**Author:** ![joshdover](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joshdover/32/42020_2.png) [@joshdover](https://discuss.elastic.co/u/joshdover)\
**Post date:** [January 21, 2019, 5:56pm UTC](https://discuss.elastic.co/t/how-can-i-have-my-kibana-server-talk-with-my-elastic-server-in-kubernetes-environment/164911/4 "2019-01-21T17:56:49Z")

</div>

I agree the wording on this page could be a bit more informative and link to [the page](https://www.elastic.co/products/x-pack/open) that explains the difference between the 'default distribution' (also known as Basic) and the OSS version of the Elastic Stack.

Since you're running Elasticsearch yourself, I'd suggest you try swapping out the `elasticsearch-oss` image for the `elasticsearch` one (and `kibana-oss` as well). This version is still free for commercial use but includes [many more features](https://www.elastic.co/subscriptions) in Kibana and Elasticsearch than you'll find in our OSS version.

Cheers!

---

<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:** [February 18, 2019, 5:56pm UTC](https://discuss.elastic.co/t/how-can-i-have-my-kibana-server-talk-with-my-elastic-server-in-kubernetes-environment/164911/5 "2019-02-18T17:56:56Z")

</div>

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