我也碰到了这个情况,同问
阿里云部署kubesphere后,添加devops组件,安装无法成功
mycolo1983K零S
更换k8s版本和操作系统版本,还是同样的问题
k8s环境:
Client Version: version.Info{Major:“1”, Minor:“16+”, GitVersion:“v1.16.9-aliyun.1”, GitCommit:“384801d”, GitTreeState:"", BuildDate:“2020-09-25T02:58:25Z”, GoVersion:“go1.13.9”, Compiler:“gc”, Platform:“linux/amd64”}
Server Version: version.Info{Major:“1”, Minor:“16+”, GitVersion:“v1.16.9-aliyun.1”, GitCommit:“4f7ea78”, GitTreeState:"", BuildDate:“2020-05-08T07:29:59Z”, GoVersion:“go1.13.9”, Compiler:“gc”, Platform:“linux/amd64”}
操作系统:
[root@iZbZ .kube]# cat /etc/redhat-release
CentOS Linux release 7.7.1908 (Core)
RolandMa1986K零S
您好,可否进入ks-installer 容器 手动执行一下 ansible-playbook playbook/devops.yaml看一下日志?
shaowenchenK零SK贰SK壹S
安装时,改了 jenkins 什么配置变量?
mycolo1983K零S
RolandMa1986
具体报错内容:
TASK [ks-devops/jenkins : Jenkins | Deploy Jenkins] ****************************************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: “/usr/local/bin/helm upgrade –install ks-jenkins /kubesphere/kubesphere/jenkins/jenkins -f /kubesphere/kubesphere/jenkins/custom-values-jenkins.yaml –namespace kubesphere-devops-system\n”, “delta”: “0:00:00.318379”, “end”: “2020-11-19 09:54:22.665566”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2020-11-19 09:54:22.347187”, “stderr”: “coalesce.go:199: warning: destination for InitScripts is a table. Ignoring non-table value <nil>\nError: parse error at (jenkins/templates/config.yaml:223): unexpected EOF”, “stderr_lines”: [“coalesce.go:199: warning: destination for InitScripts is a table. Ignoring non-table value <nil>”, “Error: parse error at (jenkins/templates/config.yaml:223): unexpected EOF”], “stdout”: "Release \“ks-jenkins\” does not exist. Installing it now.", “stdout_lines”: ["Release \“ks-jenkins\” does not exist. Installing it now."]}
PLAY RECAP *********************************************************************************************************************************************************************************************************************************
localhost : ok=14 changed=9 unreachable=0 failed=1 skipped=14 rescued=0 ignored=0
mycolo1983K零S
shaowenchen 没动过相关配置
RolandMa1986K零S
mycolo1983 麻烦你进入ks-installer 的容器,然后把kubesphere/jenkins 文件夹下的custom-values-jenkins.yaml copy出来。我们可以试一下能能不能本地重现
mycolo1983K零S
- 已编辑
RolandMa1986
附件格式什么?yaml,rar,zip都不能上传
CauchyK零SK壹S
我试了下,应该是用了ks-installer的latest版本, 可以换成v3.0.0的版本试试,v3.0.0应该没有这个问题。
kubectl -n kubesphere-system set image deploy/ks-installer ks-installer=kubespehre/ks-installer:v3.0.0
kubectl -n kubesphere-controls-system set image deploy/kubectl-admin kubectl=kubesphere/kubectl:v1.0.0
再修改一下配置文件中的 kubectlImage
, 重启ks-controller-manager
kubectl -n kubesphere-system edit cm kubesphere-config
kubectl -n kubesphere-system rollout restart deploy/ks-controller-manager
shaowenchenK零SK贰SK壹S
@Rick 需要关注下这个问题,可能是改了 jenkins 部署方式导致的,master 分支
RickK零S
@shaowenchen 没有latest版本呀
docker pull kubesphere/ks-installer
Using default tag: latest
Error response from daemon: manifest for kubesphere/ks-installer:latest not found: manifest unknown: manifest unknown
@mycolo1983 你看下 ks-installer 的镜像用的那个
RolandMa1986K零S
mycolo1983 是 kubespehre /ks-installer:v3.0.0不是kubespheredev , 请问您参考那个文档安装的?
mycolo1983K零S
Rick
[root@iZ .kube]# docker images | grep installer
kubespheredev/ks-installer latest a66a9ca1e5e2 2 days ago 732MB
kubesphere/ks-installer v3.0.0 2654183985d6 2 weeks ago 692MB
[root@iZbp1gkh8uqa5jd42kfhunZ .kube]#
shaowenchenK零SK贰SK壹S
Rick kubespheredev 下面的,合并代码之后,ci 马上就推送了镜像
mycolo1983K零S
Cauchy
改成3.0.0后可以了,多谢!
RolandMa1986K零S
mycolo1983 收到,谢谢。 阿里云ACK的那篇文章使用的是开发版的yaml文件,文档需要更新一下了~
FeynmanK零SK贰SK壹S
RolandMa1986 @Cauchy Cauchy 先更新一下那个帖子吧,我们测试验证后再加到官网