Have a 3 node cluster for elasticsearch on docker
server1(recently upgraded to 7.17.6),
server2(On 7.10.1),
server3(On 7.10.1) and a single Kibana(recently upgraded to 7.17.6) instance on server1. All 3 ES nodes & kibana containers comes up fine.
Error:
Kibana container started fine but frontend throws error "Kibana server is not ready yet".
Troubleshooting steps performed but no luck:
Resolution 1) sudo curl -k -XDELETE https://<Host-Name>:<Kib-PortNo>/*kibana* -u username:password
Output: Kibana server is not ready yet -- On terminal
Resolution 2) Checked Kibana.yml & elasticsearch.yml. Changed to below settings as suggested in a forum.
elasticsearch.yml
network.host: 0.0.0.0
changed kibana.yml From
server.name: kibana
server.host: "0"
elasticsearch.hosts: [ "http://elasticsearch:9200" ]
monitoring.ui.container.elasticsearch.enabled: true
To
server.name: kibana
server.host: "0"
#elasticsearch.hosts: [ "http://elasticsearch:9200" ]
elasticsearch.hosts: 0.0.0.0
monitoring.ui.container.elasticsearch.enabled: true
- sudo curl -u username:password https:// <Host_Name>:<elastic_PortNo> -k gives the outcome
 
 "name" : "<name>",
  "cluster_name" : "<cluster-name>",
  "cluster_uuid" : "<uuid-number>",
  "version" : {
    "number" : "7.17.6",
    "build_flavor" : "default",
    "build_type" : "docker",
    "build_hash" : " ",
    "build_date" : "",
    "build_snapshot" : false,
    "lucene_version" : "8.11.1",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },
below docker-compose.yml file for kibana.
version: '2.2'
services:
  kib11:
    image: docker.elastic.co/kibana/kibana:${VERSION}
    container_name: kib11
    ports:
      - 5602:5601
    environment:
      SERVERNAME: localhost
      ELASTICSEARCH_URL: https://<>: 9200
      ELASTICSEARCH_HOSTS: https://<>: 9200
      ELASTICSEARCH_USERNAME: <>
      ELASTICSEARCH_PASSWORD: <>
      ELASTICSEARCH_SSL_CERTIFICATE_AUTHORITIES: <>
      ELASTICSEARCH_SSL_VERIFICATIONMODE: none
      SERVER_SSL_ENABLED: "true"
      SERVER_SSL_KEYSTORE_PATH: <>
    volumes:
      - kib-config:/usr/share/kibana/config
      - kib-data:/usr/share/kibana/data
      - kib-log:/usr/share/kibana/logs
    networks:
      - elastic