<p>I have deployed Elasticsearch, Kibana and Enterprise Search to my local Kubernetes Cluster <a href="https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-orchestrating-elastic-stack-applications.html" rel="nofollow noreferrer">via this official guide</a> and they are working fine individually (and are connected to the Elasticsearch instance).</p>
<p>Now I wanted to setup Kibana to connect with Enterprise search like this:</p>
<p><a href="https://i.stack.imgur.com/fFQ8h.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fFQ8h.png" alt="enter image description here" /></a></p>
<p>I tried it with localhost, but that obviously did not work in Kubernetes.
So I tried the service name inside Kubernetes, but now I am getting this error:</p>
<p><a href="https://i.stack.imgur.com/xJuoe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xJuoe.png" alt="enter image description here" /></a></p>
<p>The Log from Kubernetes is the following:</p>
<pre><code>{&quot;type&quot;:&quot;log&quot;,&quot;@timestamp&quot;:&quot;2021-01-15T15:18:48Z&quot;,&quot;tags&quot;:[&quot;error&quot;,&quot;plugins&quot;,&quot;enterpriseSearch&quot;],&quot;pid&quot;:8,&quot;message&quot;:&quot;Could not perform access check to Enterprise Search: FetchError: request to https://enterprise-search-quickstart-ent-http.svc:3002/api/ent/v2/internal/client_config failed, reason: getaddrinfo ENOTFOUND enterprise-search-quickstart-ent-http.svc enterprise-search-quickstart-ent-http.svc:3002&quot;}
</code></pre>
<p>So the questions is how do I configure my kibana <code>enterpriseSearch.host</code> so that it will work?</p>
<p>Here are my deployment yaml files:</p>
<pre><code># Kibana
apiVersion: kibana.k8s.elastic.co/v1
kind: Kibana
metadata:
  name: quickstart
spec:
  version: 7.10.1
  count: 1
  elasticsearchRef:
    name: quickstart
  config:
    enterpriseSearch.host: 'https://enterprise-search-quickstart-ent-http.svc:3002'

# Enterprise Search
apiVersion: enterprisesearch.k8s.elastic.co/v1beta1
kind: EnterpriseSearch
metadata:
  name: enterprise-search-quickstart
spec:
  version: 7.10.1
  count: 1
  elasticsearchRef:
    name: quickstart
  config:
    ent_search.external_url: https://localhost:3002
</code></pre>

Daniel Habenicht
<p>I encountered quite the same issue, but on a development environment based on docker-compose.</p>
<p>I fixed it by setting <code>ent_search.external_url</code> value the same as <code>enterpriseSearch.host</code> value</p>
<p>In your case, i guess, your 'Enterprise Search' deployment yaml file should look like this :</p>
<pre><code># Enterprise Search
apiVersion: enterprisesearch.k8s.elastic.co/v1beta1
kind: EnterpriseSearch
metadata:
  name: enterprise-search-quickstart
spec:
  version: 7.10.1
  count: 1
  elasticsearchRef:
    name: quickstart
  config:
    ent_search.external_url: 'https://enterprise-search-quickstart-ent-http.svc:3002'
</code></pre>
