使用的命令:
git clone https://github.com/helm/charts.gitcd charts/stable/prometheushelm install prometheus . --namespace monitoring --set rbac.create=true在运行第三个命令后,我得到了下面的错误:

有没有人能帮我解决这个问题...
谢谢..。
发布于 2021-10-01 16:45:53
如果您不想安装状态指标,可以尝试
要在安装期间禁用依赖关系,请将kubeStateMetrics.enabled设置为false into values.yaml file
在values.yaml文件中,第435 change false
编辑完文件后,您可以运行相同的命令。
helm install prometheus . --namespace monitoring --set rbac.create=true参考文档:https://github.com/prometheus-community/helm-charts/tree/main/charts/prometheus#dependencies
或
您可以尝试使用
尝试在kube-state-metrics文件夹中运行上述命令(如果存在
您还需要安装prometheus的依赖项
发布于 2021-10-06 14:12:45
在GitHub page上,您可以看到该代码库已被弃用:
因此,我建议添加并使用Prometheus Community Kubernetes Helm Charts存储库:
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts然后,您可以使用以下命令使用您的标志安装Prometheus:
helm install prometheus prometheus-community/prometheus --namespace monitoring --set rbac.create=true如果您真的想坚持使用旧存储库中的版本,则不必将repo克隆到您的主机。只有follow steps from the repository page。确保通过运行helm repo list将https://charts.helm.sh/stable存储库添加到helm中。如果没有,请使用以下命令添加:
helm repo add stable https://charts.helm.sh/stable然后,您可以安装您的图表:
helm install prometheus stable/prometheus --namespace monitoring --set rbac.create=truehttps://stackoverflow.com/questions/69406297
复制相似问题