# Cross Cluster Search on Kubernetes problem

**URL:** <https://discuss.elastic.co/t/cross-cluster-search-on-kubernetes-problem/141543>\
**Category:** Elasticsearch\
**Created:** [July 25, 2018, 10:28am UTC](https://discuss.elastic.co/t/cross-cluster-search-on-kubernetes-problem/141543 "2018-07-25T10:28:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kelson.martins](https://avatars.discourse-cdn.com/v4/letter/k/85f322/32.png) [@kelson.martins](https://discuss.elastic.co/u/kelson.martins)\
**Post date:** [July 25, 2018, 10:28am UTC](https://discuss.elastic.co/t/cross-cluster-search-on-kubernetes-problem/141543/1 "2018-07-25T10:28:50Z")

</div>

Hi all,

looking into the forum I was not able to find any similar case so here is my issue:  
I have 2 ELK stacks, each running on 2 different Kubernetes clusters.  
My goal is to to enable Cross Cluster Search between the clusters but one problem appeared in which I am struggling to find a solution.

For Cross Cluster Search to work, it is my understanding that we set network.publish\_host on each cluster, so that other clusters can communicated between themselves when using the Cross Cluster Search API to set the seed nodes.

The problem is that in under a Kubernetes environment, this would be done by setting the network.publish\_host to a Kubernetes Service that exposes ports 9200 & 9300 externally.

```
network.host: 0.0.0.0
network.publish_host: elasticsearch_kube_service

```

The problem with this approach is we would only be allowed to have 1 coordinator node as internally more than one coordinator node would point to the same publish\_host, not allowing the extra coordinators node to join the cluster.

Is that something that anyone went through ? Maybe I am missing something from the overall picture.  
I wonder if network.publish\_host is not needed at all and there is another approach to making them discoverable.

Thank you.

---

<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:** [August 22, 2018, 10:28am UTC](https://discuss.elastic.co/t/cross-cluster-search-on-kubernetes-problem/141543/2 "2018-08-22T10:28:51Z")

</div>

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