容器应用,  系统运维

卡点1:k8s安装prometheus unknown field “alertmanagerConfigNamespaceSelector” in com.coreos.monitoring.v1.Alertmanager.spec

helm install prometheus prometheus-community/kube-prometheus-stack -n monitoring

报错如下:

mac@1987demac:~$ helm install prometheus prometheus-community/kube-prometheus-stack -n monitoring
Error: INSTALLATION FAILED: unable to build kubernetes objects from release manifest: error validating "": error validating data: [ValidationError(Alertmanager.spec): unknown field "alertmanagerConfigNamespaceSelector" in com.coreos.monitoring.v1.Alertmanager.spec, ValidationError(Alertmanager.spec): unknown field "alertmanagerConfigSelector" in com.coreos.monitoring.v1.Alertmanager.spec]

google 之后找到了和我类似的问题, 是因为我之前已经安装过其他helm repo 提供的prometheus 安装,已经存在了相应的CRD。因此需要提前把他们删除掉。

file

file

file

删除后即可以安装了。

file

留言

您的电子邮箱地址不会被公开。 必填项已用*标注

闽ICP备20008591号-1