Kibana deployed to kubernetes cluster returns 404 Kibana deployed to kubernetes cluster returns 404 kubernetes kubernetes

Kibana deployed to kubernetes cluster returns 404


It works now after I add the following to the Kibana config:

    server.basePath: "/my-kibana"    server.rewriteBasePath: true

Thanks to Matthew L Daniel, I have switched the healthcheck to /my-kibana/api/status


    - name: SERVER_BASEPATH      value: /api/v1/namespaces/default/services/svc-kibana/proxy

is the erroneous setting causing you problems, since server.basePath is documented as

Enables you to specify a path to mount Kibana at if you are running behind a proxy. Use the server.rewriteBasePath setting to tell Kibana if it should remove the basePath from requests it receives, and to prevent a deprecation warning at startup. This setting cannot end in a slash (/).

So you will have to use /api/v1/namespaces/default/services/svc-kibana/proxy/app/kibana since you did not override server.defaultRoute: /app/kibana. I have no idea why the ELB healthcheck is only getting back 9 bytes of content, but you'd likely want to use /api/status as its healthcheck anyway


I was facing the same issue in the kubernetes cluster where the kibana was running behind the nginx proxy.

DNS: https://my-url/dashboard Nginx conf:     location /dashboard/ {          rewrite ^/dashboard/(.*) /$1 break;          proxy_pass http://kibana:5601/;

After adding the above suggested parameters by Kok How teh in the kibana.yml

kibana.yml:  server.name: kibana server.host: "0" elasticsearch.url: http://elasticsearch:9200 server.basePath: "/dashboard"   #this line

was able to resolve the redirection issue.