cxz 我运行后端的ks-iam中的apiserve.go报的错file:///home/chen/%E5%9B%BE%E7%89%87/2020-04-28%2017-29-17%E5%B1%8F%E5%B9%95%E6%88%AA%E5%9B%BE.png
hongming 可以看看server需要的配置,可以看代码, 也可以看装好的环境中的配置文件 https://github.com/kubesphere/kubesphere/blob/d0dc66cf2867e79b8ccf2d1e3670d4e2badebe1d/pkg/simple/client/ldap/options.go#L40-L54
cxz file:///home/chen/%E5%9B%BE%E7%89%87/2020-04-29%2014-57-12%E5%B1%8F%E5%B9%95%E6%88%AA%E5%9B%BE.png 这个是什么原因呀,运行controller-manager.go这个是报的错
hongming 检查看看 kubesphere-config 里是不是启用了 openpitrix, 配置了 openpitrix server,但是 服务不可访问, 可以看看错误提示。 本地调试的话, 你可以修改一下 openpitrix 的配置,把相关配置都留空, 或者用 telepresence 连接到部署好的集群进行调试
wartih cxz 谢谢 确实加上 –conf=/etc/caddy/Caddyfile 已经不报405了,但是登录还是有Unauthorized,no token found的错误。我在Telepresence中telnet redis-url redis.kubesphere-system.svc 6379是成功的。 似乎是中间telemetry.caddyserver出错了?
hongming @wartih 可以参照已安装的环境进行配置kubectl -n kubesphere-system get cm caddyfile -o yaml 也可以参照 installer 中的配置 https://github.com/kubesphere/ks-installer/blob/v2.1.1/roles/ks-core/prepare/templates/ks-apigateway-init.yaml.j2#L9 这里在部署的时候是通过环境变量挂载的, 本地部署的时候可以写固定值,但是需要和ks-account 中的JWT_SECRET保持一致 另外telemetry.caddyserver 的warning可以忽略
wartih hongming 嗯嗯我发现这个日志在正常环境中也是有的。但是我确实已经写死了JWT_SECRET 甚至写死了KUBESPHERE_TOKEN 我在pkg/apigateway/caddy-plugin/authenticate/authenticate.go中加了一些打印: 一次完整的请求错误是这样的:
hongming sunnywu 3.0 https://github.com/kubesphere/website/blob/78968c3250b011055907a4d98dd6ab98fe05bcbe/content/en/docs/api-documentation/kubesphere-api.md 2.x https://v2-1.docs.kubesphere.io/docs/zh-CN/api-reference/api-guide/