kibana opendistro can't connect to ElasticSearch open distro container on Docker kibana opendistro can't connect to ElasticSearch open distro container on Docker elasticsearch elasticsearch

kibana opendistro can't connect to ElasticSearch open distro container on Docker


Ok, I was able to get a single node elastic & kibana working with this docker-compose.yml:

version: '3'services:  odfe-node1:    image: amazon/opendistro-for-elasticsearch:1.8.0    container_name: odfe-node1    environment:      - cluster.name=odfe-cluster      - discovery.type=single-node      - "ES_JAVA_OPTS=-Xms512m -Xmx512m" # minimum and maximum Java heap size, recommend setting both to 50% of system RAM    ulimits:      memlock:        soft: -1        hard: -1      nofile:        soft: 65536 # maximum number of open files for the Elasticsearch user, set to at least 65536 on modern systems        hard: 65536    volumes:      - odfe-data1:/usr/share/elasticsearch/data    ports:      - 9200:9200      - 9600:9600 # required for Performance Analyzer    networks:      - odfe-net  kibana:    image: amazon/opendistro-for-elasticsearch-kibana:1.8.0    container_name: odfe-kibana    ports:      - 5601:5601    expose:      - "5601"    environment:      ELASTICSEARCH_URL: https://odfe-node1:9200      ELASTICSEARCH_HOSTS: https://odfe-node1:9200    volumes:      - ./kibana.yml:/usr/share/kibana/config/kibana.yml    networks:      - odfe-netvolumes:  odfe-data1:networks:  odfe-net:

I started with this yaml file & changed the elastic environment variables to:

      - cluster.name=odfe-cluster      - discovery.type=single-node      - "ES_JAVA_OPTS=-Xms512m -Xmx512m"

I also overrode the kibana.yml file:

    volumes:      - ./kibana.yml:/usr/share/kibana/config/kibana.yml

with this:

server.name: kibanaserver.host: "0"elasticsearch.hosts: https://odfe-node1:9200elasticsearch.ssl.verificationMode: noneelasticsearch.username: adminelasticsearch.password: adminelasticsearch.requestHeadersWhitelist: ["securitytenant","Authorization"]opendistro_security.multitenancy.enabled: trueopendistro_security.multitenancy.tenants.preferred: ["Private", "Global"]opendistro_security.readonly_mode.roles: ["kibana_read_only"]newsfeed.enabled: falsetelemetry.optIn: falsetelemetry.enabled: false

I extract the default kibana.yml & changed:

elasticsearch.hosts: https://odfe-node1:9200elasticsearch.username: adminelasticsearch.password: admin

But the 2 node example in the documentation still doesn't work for me.

Hope that helps