创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
操作系统信息
gcp
Kubernetes版本信息
v1.21.12
容器运行时
KubeSphere版本信息
v3.3.1 在线安装 在已有K8s上安装
问题是什么
Page phenomenon:
After successful installation, specific monitoring information, such as cpu memory, cannot be seen through the page.
ks-controller-manager error log:
E1103 02:22:34.154450 1 pvc_autoresizer.go:108] pvc-autoresizer “msg”=“metricsClient.GetMetrics failed” “error”="Post \“http://prometheus-operated.kubesphere-monitoring-system.svc:9090/api/v1/query\”: dial tcp: lookup prometheus-operated.kubesphere-monitoring-system.svc on 10.20.0.10:53: no such host"
Then I found that prometheus-operator was restarting
prometheus-operator error log:
level=warn ts=2022-11-03T02:30:51.413824001Z caller=operator.go:316 component=prometheusoperator msg=“failed to check if the API supports the endpointslice resources” err=“converting (v1.APIGroup) to (v1.APIResourceList): unknown conversion”
I checked some relevant materials, but still could not solve the problem. The description was vague:
prometheus-operator/prometheus-operator#3862
Thanks.