s2ibuildertemplates foi carregado incorretamente pelo ks-installer recente.
Recentemente, instalei o kubesphere com kubekey com as seguintes etapas:
Baixe o kubeky e descompacte-o
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
Subir kubernetes e kubesphere
./kk create cluster --with-kubesphere nightly-20210418
Ativar componente DevOps
kubectl -nkubesphere-system edit cc ks-installer
Transforme spec.devops.enabled
em true
.
Ferramenta mais poderosa para habilitar o componente ks se você estiver interessado: https://github.com/LinuxSuRen/ks
Esperando pelo início da kubesphere
ou use o comando abaixo para verificar o status:
kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l app=ks-install -o jsonpath='{.items[0].metadata.name}') -f
Agora podemos verificar se s2ibuildertemplates foram carregados corretamente.
kubectl get s2ibuildertemplates.devops.kubesphere.io -A
Você descobriria que os modelos si2buildert estavam faltando.
Resultado
No resources found
Esperado
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
A propósito, o kubesphere 3.0.0 não tem nenhum problema.
/ tipo bug
/ prioridade alta
/ area devops
/ cc @pixiake
Encontrei a causa, trabalhando nisso.
/atribuir
@zryfish O último ks-installer (nightly-20210423) ainda não corrigiu esse problema. # 1441 pode não ser uma solução para este problema.
Comentários muito úteis
Encontrei a causa, trabalhando nisso.
/atribuir