I'm starting to think it is related to the xpack security. If I enable it by commenting out the two xpack settings that enabled: false, the root curl still refuses which was the misdirection (didn't curl -v) but it shows a redirect to /login.
So I'm moving away from the xpack idea. It's enabled (all default settings) but I still have the network looking issue.
sudo netstat -nltp doesn't work for me, I tried it inside docker exec -it kibana bash
bash-4.2$ netstat
bash: netstat: command not found
Regardless, when I am inside the container I can successfully curl localhost:5601/app/kibana
It's outside the container that isn't working. I don't know where the problem lies (obviously), is it in the kibana image? Is it Docker? Is it my networking configuration of the box. I mean the same exact box works for elasticsearch. Different port though, but -p 9200:5601 for example didn't work either.
It does behave differently based on how I start up the container. if I do -p 5601:5601 neither of these curls work:
curl localhost:5601
curl 127.0.0.1:5601
but if I do --network=host both curls work.
Again, same box does one thing with es another with kibana. Docker is the same in both cases, this leads me to look at the image. I know for elasticsearch, I had to configure the bind and publish hosts. Can you do this for Kibana? It didn't complain but it didn't help.
My gut tells me it's something with the image and the way it is configured, but I can't prove that. Again, docker and the box/os are the same in es / kibana
Also I've also run both on Ubuntu 17.04. It doesn't have the route53, but it has localhost, 127 and an ip. It succeeds and fails identically to the centos setup
Ubuntu 17.04
Docker version 1.12.6, build 78d1802
Legend:
* worked
x failed
ElasticSearch with container networking and port mapping
Since this is running in a docker container, does the default server.host of "localhost" cause problems? Should this maybe be set to the ip address of the host machine?
For my actual elasticsearch nodes, I had set these up in elasticsearch.yml. Is the server.host the equivalent? Just trying to work through this.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.