-
Notifications
You must be signed in to change notification settings - Fork 8.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kibana base URL is misconfigured when using kubectl proxy to access the service #11151
Comments
A somewhat workaround is to setup port forwarding, kubectl port-forward kibana-logging-2362227606-0gkjq --namespace efk 5601:5601 This makes it work. The underlying issue remains though – Kibana interface does not work when it is accessed from a path. |
We're not the ones behind the |
This has nothing to do with how it is setup, it only has to do with how it is accessed. But yeah, good luck dismissively closing issues. |
@gajus Pardon the confusion here, I didn't mean to offend. Can you provide details that are native to Kibana such as the contents of kibana.yml? Or if you're using the Elastic-provided docker containers, can you include the relevant environment variables? Is the server.basePath set properly? Is the proxy correctly removing the basePath before sending to the Kibana server? It sounds like the basePath isn't configured properly, but it's hard to tell. I'm not at all familiar with kubectl proxies, so I'm not sure what the expected behavior is when you hit any of those URLs. I'm happy to help if we can get the problem closer to Kibana, and if there is a bug here I'm happy to reopen this issue and triage it accordingly. |
The I am presuming that Kibana is able to function without this configuration, or put it another way – it was working in v4 using kubectl proxy without configuring a basepath. If this is a breaking change, then you will have a lot of people complaining as an active migration happens in k8s world. I am suspecting that this issue is the same issue #10093 as well as this issue #8967. |
The issue you're encountering is manifesting in the same way as the two you linked, but there isn't enough information to say for sure that they're related. Unfortunately, the scenario you're describing is one that can be caused by many different issues behind the scenes. #10093 is running dev mode, so it has our basePath proxy automatically set up and configured by default, so it is likely caused by either permissions issues or the a lack of #8967 could be the same issue you're encountering, but it's not clear. My best guess in that ticket is a permissions issue or corrupted bundles, but the author didn't circle back to it, so we don't know for sure.
|
A URL generated using proxy is a dynamic URL, therefore configuring Kibana to use one or another baseurl at the setup time is of little value. Either way, for all intents and purposes, kubectl port-forward kibana-logging-2362227606-0gkjq --namespace efk 5601:5601 Thank you for your help. |
@gajus Ah, I see. Well, I'm glad you got something working. Sorry for the rocky start here! |
Kibana version:
5.3.0
Elasticsearch version:
Server OS version:
Browser version:
Browser OS version:
N/A
Original install method (e.g. download page, yum, from source, etc.):
Kubernetes/ Docker.
More or less, following instructions from https://github.com/NestAway/efk-stack.
Description of the problem including expected versus actual behavior:
Steps to reproduce:
Errors in browser console (if relevant):
The following resources produce error 404:
The same resources can be accessed from:
http://localhost:8001/api/v1/proxy/namespaces/efk/services/kibana-logging/[resource path]
Provide logs and/or server output (if relevant):
Describe the feature:
N/A
The text was updated successfully, but these errors were encountered: