情况
使用helm安装prometheus命令如下:
helm install prometheus stable/prometheus-operator
遇到报错:
Error: failed to download "stable/prometheus-operator" (hint: running `helm repo update` may help)
根据提示更新helm的仓库如下:
zhangxiaofans-MacBook-Pro:prometheus joe$ helm repo update Hang tight while we grab the latest from your chart repositories......Successfully got an update from the "gitlab" chart repository...Successfully got an update from the "cilium" chart repository...Successfully got an update from the "elastic" chart repositoryUpdate Complete. ⎈Happy Helming!⎈
再次运行仍然报错,helm的版本是3.3.1
helm versionversion.BuildInfo{Version:"v3.3.1", GitCommit:"249e5215cde0c3fa72e27eb7a30e8d55c9696144", GitTreeState:"clean", GoVersion:"go1.14.7"}