最近的 ks-installer 错误地加载了 s2ibuildertemplates。
最近,我使用kubekey安装了
下载kubeky并解压
wget -c https://github.com/kubesphere/kubekey/releases/download/v1.1.0-alpha.2/kubekey-v1.1.0-alpha.2-linux-amd64.tar.gz
tar xzvf kubekey-v1.1.0-alpha.2-linux-amd64.tar.gz
启动 kubernetes 和 kubesphere
./kk create cluster --with-kubesphere nightly-20210418
启用 DevOps 组件
kubectl -nkubesphere-system edit cc ks-installer
将spec.devops.enabled
变成true
。
如果您有兴趣,可以使用更强大的工具来启用 ks 组件: https :
等待 kubesphere up
或使用以下命令检查状态:
kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l app=ks-install -o jsonpath='{.items[0].metadata.name}') -f
现在我们可以检查 s2ibuildertemplates 是否正确加载。
kubectl get s2ibuildertemplates.devops.kubesphere.io -A
您会发现缺少 si2buildertemplates。
结果
No resources found
预期的
NAME FRAMEWORK DEFAULTBASEIMAGE VERSION
binary binary kubesphere/s2i-binary:v2.1.0 0.0.1
java java kubesphere/java-8-centos7:v2.1.0 0.0.1
nodejs nodejs kubesphere/nodejs-8-centos7:v2.1.0 0.0.1
python python kubesphere/python-36-centos7:v2.1.0 0.0.1
tomcat java kubesphere/tomcat85-java8-centos7:v2.1.0 0.0.1
顺便说一句,kubesphere 3.0.0 没有问题。
/种类错误
/优先级高
/area devops
/cc @pixiake
找到原因,继续努力。
/分配
@zryfish最新的 ks-installer(nightly-20210423) 还没有解决这个问题。 #1441 可能不是这个问题的解决方案。
最有用的评论
找到原因,继续努力。
/分配