• 安装部署DevOps
  • devops插件启用报错 helm upgrade' will try to update immutable fields of Job

创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。

操作系统信息
例如:虚拟机,Centos8.5,8C/64G

Kubernetes版本信息

1.26.5

容器运行时
crictl version

Version: 0.1.0

RuntimeName: containerd

RuntimeVersion: v1.7.12

RuntimeApiVersion: v1

KubeSphere版本信息
v3.4.1。离线安装,kk安装。

问题是什么
用KK安装好后,启用devops 插件报错,helm版本是

Version:“v3.13.3”, GitCommit:“c8b948945e52abba22ff885446a1486cb5fd3474”, GitTreeState:“clean”, GoVersion:"go1.20.11

这是什么原因啊?有人遇到过吗?

yudong 您好,我通过您给的帖子,因为我还没开启插件就用了下面的方法:

# 清理开启失败的残留 release

helm -n kubesphere-devops-system delete devops

# 执行下面命令,获取 ks-installer 镜像

kubectl -n kubesphere-system get deployments ks-installer –no-headers -o custom-columns=:.spec.template.spec.containers[0].image

得到 registry.cn-beijing.aliyuncs.com/kubesphereio/ks-installer:v3.4.1

# 在获取的镜像最后加上 ‘-patch.0’ ,执行下面命令更新 ks-installer 镜像

kubectl -n kubesphere-system patch deployments ks-installer –type=‘json’ -p=‘[{“op”: “replace”, “path”: “/spec/template/spec/containers/0/image”, “value”: “registry.cn-beijing.aliyuncs.com/kubesphereio/ks-installer:v3.4.1-patch.0”}]’

修改patch后发现 ks-install起不起来了,报下面这个错误,是要手动重启吗还是什么?

    exmono 哦 这个 patch 镜像还没有同步到其他仓库;麻烦把镜像改成kubesphere/ks-installer:v3.4.1-patch.0

    kubectl -n kubesphere-system patch deployments ks-installer –type=‘json’ -p=‘[{“op”: “replace”, “path”: “/spec/template/spec/containers/0/image”, “value”: “kubesphere/ks-installer:v3.4.1-patch.0”}]’
      16 天 后