kube-prometheus-stack
使用helm安装Prometheus
kube-prometheus-stack 20.0.1 · prometheus/prometheus-community (artifacthub.io)
步骤
- 加仓库
1 | helm repo add prometheus-community https://prometheus-community.github.io/helm-charts |
- 安装
查看版本
1 | helm search repo kube-prometheus-stack -l |
拉取chart,就用目前的最新版本吧
1 | helm pull prometheus-community/kube-prometheus-stack --version 20.0.1 |
报错
unknown field “alertmanagerConfigSelector”
Error: 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]
猜测原因:
1 | [root@paas-m-k8s-master-1 kube-prometheus-stack]# kubectl get crd | grep coreos |
以前不知道什么时候装的crd版本相对于当前最新的prometheus来说太老了
按照Readme里说的卸载
1 | kubectl delete crd alertmanagerconfigs.monitoring.coreos.com |
卸载后再次安装,ok
镜像pull failed
k8s.gcr.io/ingress-nginx/kube-webhook-certgen 下不下来