# Kibana 6.7 cannot connect to elasticsearch

**URL:** https://discuss.elastic.co/t/kibana-6-7-cannot-connect-to-elasticsearch/174655
**Category:** Kibana
**Created:** [March 31, 2019, 2:43am UTC](https://discuss.elastic.co/t/kibana-6-7-cannot-connect-to-elasticsearch/174655 "2019-03-31T02:43:34Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Mike\_H](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mike_h/32/33104_2.png) [@Mike\_H](https://discuss.elastic.co/u/Mike_H)
#### Post date: [March 31, 2019, 2:43am UTC](https://discuss.elastic.co/t/kibana-6-7-cannot-connect-to-elasticsearch/174655/1 "2019-03-31T02:43:34Z")

</div>

Hiya, we're upgrading our elastic stack from 6.6.2 to 6.7.0. The stack is run using the official docker images on Kubernetes.

Elasticsearch upgraded without issue. However, Kibana 6.7.0 cannot connect to Elasticsearch. In fact, it's looking for a totally different url than what we've specified in our yaml.

```
Request error, retrying HEAD http://elasticsearch:9200/ => getaddrinfo ENOTFOUND elasticsearch elasticsearch:9200

```

Elasticsearch resides on `http://es.default.svc.cluster.local:9200`

Per the [breaking changes docs](https://www.elastic.co/guide/en/kibana/6.7/release-notes-6.7.0.html#breaking-6.7.0), not much has changed.

Aside from the docker image, literally nothing else changed, so I'm not really sure how the URL cannot be found. What could be happening here?

Here's our deployment yaml

```auto
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: elastic-kibana
spec:
  replicas: 1
  strategy:
    type: Recreate
  template:
    metadata:
      labels:
        app: elastic-kibana
    spec:
      containers:
      - name: elastic-kibana
        image: docker.elastic.co/kibana/kibana:6.7.0
        resources:
          requests:
            cpu: "200m"
            memory: "350Mi"
          limits:
            cpu: "1000m"
            memory: "1000Mi"
        env:
          - name: ELASTICSEARCH_URL
            value: http://es.default.svc.cluster.local:9200
        ports:
          - containerPort: 5601
            name: http
            protocol: TCP

```

---

<div class="post-metadata">

### Author: ![nickpeihl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nickpeihl/32/112622_2.png) [@nickpeihl](https://discuss.elastic.co/u/nickpeihl)
#### Post date: [April 1, 2019, 3:33pm UTC](https://discuss.elastic.co/t/kibana-6-7-cannot-connect-to-elasticsearch/174655/2 "2019-04-01T15:33:09Z")

</div>

Your environment variable should be `ELASTICSEARCH_HOSTS`.

[The `elasticsearch.url` setting and corresponding `ELASTICSEARCH_URL` variable was deprecated in 6.6.0](https://www.elastic.co/guide/en/kibana/6.7/settings.html).

---

<div class="post-metadata">

### Author: ![Mike\_H](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mike_h/32/33104_2.png) [@Mike\_H](https://discuss.elastic.co/u/Mike_H)
#### Post date: [April 1, 2019, 4:14pm UTC](https://discuss.elastic.co/t/kibana-6-7-cannot-connect-to-elasticsearch/174655/3 "2019-04-01T16:14:06Z")

</div>

Huh, guess I missed that. Anyway, that worked - thanks for the assist @nickpeihl!

---

<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 29, 2019, 4:14pm UTC](https://discuss.elastic.co/t/kibana-6-7-cannot-connect-to-elasticsearch/174655/4 "2019-04-29T16:14:07Z")

</div>

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