我正在尝试访问Kibana仪表板,同时尝试在本地设置fluentd-elasticsearch。这是我遵循的link。我检查了Kibana的豆荚的日志。它显示以下错误:
{"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"}
有没有人能建议我如何解决这个问题?
发布于 2020-12-21 15:50:46
或者,您也可以通过指定环境变量来指定Kibana来重写服务器basepath。
修改kibana-deployment.yaml
以添加以下内容。
- 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
https://stackoverflow.com/questions/52414767
复制相似问题