采用本地部署方案(8个主机模式),安装过程无错误,非常顺利。但按照手册中最后一步验证安装结果时没有出现“Welcome to KubeSphere”字样。具体日志如下:
error: error executing jsonpath “{.items[0].metadata.name}”: Error executing template: array index out of bounds: index 0, length 0. Printing more information for debugging the template:
template was:
{.items[0].metadata.name}
object given to jsonpath engine was:
map[string]interface {}{“apiVersion”:“v1”, “items”:[]interface {}{}, “kind”:“List”, “metadata”:map[string]interface {}{“resourceVersion”:"", “selfLink”:""}}

error: expected ‘logs [-f] [-p] (POD | TYPE/NAME) [-c CONTAINER]’.
POD or TYPE/NAME is a required argument for the logs command
See ‘kubectl logs -h’ for help and examples
不是特别明白以上错误的指向,还请专家解答。

你是不是生成的config没有加 –with-kubesphere?看错误你只装了K8s,没有装KubeSphere. 可以按照“在已有的K8s集群上安装KubeSphere"指南接着安装。

  • vzrs 回复了此帖

    rayzhou2017 谢谢你,我知道哪里出问题了,文档中举例的config配置只有k8s部分的,后面注释说其他配置安装完成后再进行修改,我以为举例中已经是完整配置了,后面是增量配置。仔细看过之后才发现后半部分是kubesphere的……

    1 年 后