Kibana 6.7 cannot connect to elasticsearch

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, 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

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

Your environment variable should be ELASTICSEARCH_HOSTS.

The elasticsearch.url setting and corresponding ELASTICSEARCH_URL variable was deprecated in 6.6.0.

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

1 Like

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