报错详情:
Error: Internal error occurred: failed calling webhook "prometheusrulemutate.monitoring.coreos.com": Post https://monitoring-prometheus-oper-operator.monitoring.svc:443/admission-prometheusrules/mutate?timeout=30s: service "monitoring-prometheus-oper-operator" not found
原因:
由旧版本中仍然存在的一些 webhook 配置引起的
//过滤
kubectl get validatingwebhookconfigurations.admissionregistration.k8s.io|grep prometheus-operator-admission
//过滤
kubectl get mutatingwebhookconfigurations.admissionregistration.k8s.io|grep prometheus-operator-admission
##删除搜到的对象
kubectl delete validatingwebhookconfigurations.admissionregistration.k8s.io prometheus-operator-admission
kubectl delete mutatingwebhookconfigurations.admissionregistration.k8s.io prometheus-operator-admission
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
暂无评论内容