eip-work / kuboard-press

Kuboard 是基于 Kubernetes 的微服务管理界面。同时提供 Kubernetes 免费中文教程,入门教程,最新版本的 Kubernetes v1.23.4 安装手册,(k8s install) 在线答疑,持续更新。
https://kuboard.cn/
21.66k stars 1.49k forks source link

kuboard / kube-state-metrics报错导致不断收到警报 #466

Open raynent opened 8 months ago

raynent commented 8 months ago

尝试了一下创建cronjob v1beta1 了一下3.5.2 它不支持 ,只支持v1 所以就算想手动创一个v1beta1负载也是不现实的,也尝试了自动伸缩也是一样的结果 image

日志报错截图 image

邮件也有收到一些警报 image

E1020 05:49:43.528292 1 reflector.go:138] pkg/mod/k8s.io/client-go@v0.21.2/tools/cache/reflector.go:167: Failed to watch *v1beta1.CronJob: failed to list *v1beta1.CronJob: the server could not find the requested resource

E1020 05:49:49.084712 1 reflector.go:138] pkg/mod/k8s.io/client-go@v0.21.2/tools/cache/reflector.go:167: Failed to watch v1beta1.PodDisruptionBudget: failed to list v1beta1.PodDisruptionBudget: the server could not find the requested resource

E1020 05:50:10.315970 1 reflector.go:138] pkg/mod/k8s.io/client-go@v0.21.2/tools/cache/reflector.go:167: Failed to watch v2beta1.HorizontalPodAutoscaler: failed to list v2beta1.HorizontalPodAutoscaler: the server could not find the requested resource

raynent commented 8 months ago

每天会收到几次这个报警邮件影响还蛮大的 <html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

告警详情

字段 内容
description kube-state-metrics 不能正常地查询 Kubernetes 对象的 list 操作,这将导致其不能正常地提供 Kubernetes 对象的监控指标。
summary kube-state-metrics 不能查询 Kubernetes 对象的 list 操作。