Skip to content
This repository has been archived by the owner on Nov 7, 2018. It is now read-only.

Kibana unable to connect to elasticsearch #12

Open
VasuBalakrishnan opened this issue Feb 11, 2016 · 6 comments
Open

Kibana unable to connect to elasticsearch #12

VasuBalakrishnan opened this issue Feb 11, 2016 · 6 comments

Comments

@VasuBalakrishnan
Copy link

I'm getting these errors when running kibana

{"name":"Kibana","hostname":"kibana-z2aab","pid":7,"level":30,"msg":"Unable to connect to elasticsearch at http://elasticsearch.default.svc.cluster.local:9200. Retrying in 2.5 seconds.","time":"2016-02-11T19:12:16.168Z","v":0}

I tried nslookup and it cannot resolve the service name

kubectl exec kibana-z2aab -- nslookup elasticsearch.default.svc.cluster.local

Server: (null)
Address 1: ::1 localhost
Address 2: 127.0.0.1 localhost

nslookup: can't resolve 'elasticsearch.default.svc.cluster.local': Name does not resolve
error: error executing remote command: Error executing command in container: Error executing in Docker Container: 1

Looks like kubernetes DNS issue. Any ideas / pointers ?

thanks

@VasuBalakrishnan
Copy link
Author

Strangely I'm able to resolve the following from kibana pod but I cannot resolve elasticsearch.

kubectl exec kibana-z2aab -- nslookup kubernetes.default.svc.cluster.local

Server: (null)
Address 1: ::1 localhost
Address 2: 127.0.0.1 localhost

Name: kubernetes.default.svc.cluster.local
Address 1: 11.1.2.1

@pires
Copy link
Owner

pires commented Feb 11, 2016

This is an issue with Alpine Linux containers and DNS. Newer images of the stack are fixed but I haven't got the time to fix #11.

@VasuBalakrishnan
Copy link
Author

Any timeframe or workaround this?

thanks

@pires
Copy link
Owner

pires commented Feb 11, 2016

Nop, I'm no longer actively using ELK.

@VasuBalakrishnan
Copy link
Author

Whats involved in upgrading the stack? I can pitch in.

@pires
Copy link
Owner

pires commented Feb 11, 2016

See #11.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants