minikube中离线安装chaosMesh的问题

windows环境下的minikube,docker desktop
已经pull了相关镜像,windows解压后,进入路径helm install失败

PS C:\Users\lingx825\k8s\PersistentVolume\chaos-mesh> ls

目录: C:\Users\lingx825\k8s\PersistentVolume\chaos-mesh

Mode LastWriteTime Length Name


d----- 2021/11/30 19:17 chaos-mesh-master

PS C:\Users\lingx825\k8s\PersistentVolume\chaos-mesh> helm install chaos-mesh helm/chaos-mesh -n=chaos-testing --set chaosDaemon.image=ghcr.io/chaos-mesh/chaos-daemon:v2.1.0 --set controllerManager.image=ghcr.io/chaos-mesh/chaos-daemon:v2.1.0 --set dashboard.image=ghcr.io/chaos-mesh/chaos-dashboard:v2.1.0 --version 2.1.0
Error: INSTALLATION FAILED: failed to download “helm/chaos-mesh” at version “2.1.0”
PS C:\Users\lingx825\k8s\PersistentVolume\chaos-mesh> cd .\chaos-mesh-master
PS C:\Users\lingx825\k8s\PersistentVolume\chaos-mesh\chaos-mesh-master> helm install chaos-mesh helm/chaos-mesh -n=chaos-testing --set chaosDaemon.image=ghcr.io/chaos-mesh/chaos-daemon:v2.1.0 --set controllerManager.image=ghcr.io/chaos-mesh/chaos-daemon:v2.1.0 --set dashboard.image=ghcr.io/chaos-mesh/chaos-dashboard:v2.1.0 --version 2.1.0
coalesce.go:199: warning: cannot overwrite table with non table for image (map[registry: repository:chaos-mesh/chaos-dashboard tag:])
coalesce.go:199: warning: cannot overwrite table with non table for image (map[registry: repository:chaos-mesh/chaos-daemon tag:])
coalesce.go:199: warning: cannot overwrite table with non table for image (map[registry: repository:chaos-mesh/chaos-mesh tag:])
Error: INSTALLATION FAILED: template: chaos-mesh/templates/_helpers.tpl:114:10: executing “chaos-controller-manager.image” at <.Values.controllerManager.image.registry>: can’t evaluate field registry in type interface {}
PS C:\Users\lingx825\k8s\PersistentVolume\chaos-mesh\chaos-mesh-master>

1 个赞

非常抱歉这么晚才回复,这个错误是因为 xxx.image 现在是一个map,但是 template 里把它当作了一个字符串。现在安装只需要指定 images.registry 就可以了,官网的文档也已经更新 https://chaos-mesh.org/docs/offline-installation/#step-3-install-chaos-mesh-using-helm

1 个赞

此话题已在最后回复的 1 分钟后被自动关闭。不再允许新回复。