首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >无法访问Ubuntu上kubernetes cluser中的Kibana仪表板服务

无法访问Ubuntu上kubernetes cluser中的Kibana仪表板服务
EN

Stack Overflow用户
提问于 2018-09-20 06:01:13
回答 1查看 2.5K关注 0票数 2

我正在尝试访问Kibana仪表板,同时尝试在本地设置fluentd-elasticsearch。这是我遵循的link。我检查了Kibana的豆荚的日志。它显示以下错误:

代码语言:javascript
复制
{"type":"log","@timestamp":"2018-09-19T21:45:42Z","tags":["warning","config","deprecation"],"pid":1,"message":"You should set server.basePath along with server.rewriteBasePath. Starting in 7.0, Kibana will expect that all requests start with server.basePath rather than expecting you to rewrite the requests in your reverse proxy. Set server.rewriteBasePath to false to preserve the current behavior and silence this warning."}
root@mTrainer3:/logging# kubectl logs kibana-logging-66d577d965-mbbg5 -n kube-system
{"type":"log","@timestamp":"2018-09-19T21:45:42Z","tags":["warning","config","deprecation"],"pid":1,"message":"You should set server.basePath along with server.rewriteBasePath. Starting in 7.0, Kibana will expect that all requests start with server.basePath rather than expecting you to rewrite the requests in your reverse proxy. Set server.rewriteBasePath to false to preserve the current behavior and silence this warning."}
{"type":"log","@timestamp":"2018-09-19T21:46:08Z","tags":["status","plugin:kibana@6.4.1","info"],"pid":1,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}

有没有人能建议我如何解决这个问题?

EN

回答 1

Stack Overflow用户

发布于 2020-12-21 15:50:46

或者,您也可以通过指定环境变量来指定Kibana来重写服务器basepath。

修改kibana-deployment.yaml以添加以下内容。

代码语言:javascript
复制
- name: SERVER_REWRITEBASEPATH
  value: "true"

现在应用:kubectl apply -f kibana-deployment.yaml

microk8s上进行了测试,并与kubectl proxy配合良好

http://127.0.0.1:8001/api/v1/namespaces/kube-system/services/kibana-logging/proxy/app/kibana

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/52414767

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档