唯一的报错在kube-state-metrics中:

E0511 07:16:07.112643 1 reflector.go:125] k8s.io/kube-state-metrics/internal/store/builder.go:295: Failed to list *v1.StorageClass: storageclasses.storage.k8s.io is forbidden: User "system:serviceaccount:kubesphere-monitoring-system:kube-state-metrics" cannot list resource "storageclasses" in API group "storage.k8s.io" at the cluster scope

自有K8s(干净的)集群之上搭建的ks

一台机器有采集信息, 另外两台要没采集信息

集群状态正常监控

prometheus没有报错

是两条报错

E0511 07:22:48.264977 1 reflector.go:125] k8s.io/kube-state-metrics/internal/store/builder.go:295: Failed to list *v1.StorageClass: storageclasses.storage.k8s.io is forbidden: User "system:serviceaccount:kubesphere-monitoring-system:kube-state-metrics" cannot list resource "storageclasses" in API group "storage.k8s.io" at the cluster scope

E0511 07:22:48.265872 1 reflector.go:125] k8s.io/kube-state-metrics/internal/store/builder.go:295: Failed to list *v1beta1.CertificateSigningRequest: certificatesigningrequests.certificates.k8s.io is forbidden: User "system:serviceaccount:kubesphere-monitoring-system:kube-state-metrics" cannot list resource "certificatesigningrequests" in API group "certificates.k8s.io" at the cluster scope

    huanggze 修改了同样的配置 ,kube-state-metrics 中不再报错,依然只有一个node的pod有监控信息

    addon-resizer 中日志

    ERROR: logging before flag.Parse: I0511 15:15:21.759926 1 nanny_lib.go:108] Resources are not within the expected limits, updating the deployment. Actual: {Limits:map[] Requests:map[cpu:{i:{value:10 scale:-3} d:{Dec:} s:10m Format:DecimalSI} memory:{i:{value:157286400 scale:0} d:{Dec:} s:150Mi Format:BinarySI}]} Expected: {Limits:map[cpu:{i:{value:36000000 scale:-9} d:{Dec:} s: Format:DecimalSI} memory:{i:{value:0 scale:0} d:{Dec:0xc4204934a0} s: Format:BinarySI}] Requests:map[cpu:{i:{value:36000000 scale:-9} d:{Dec:} s: Format:DecimalSI} memory:{i:{value:0 scale:0} d:{Dec:0xc4204934a0} s: Format:BinarySI}]}
    
    ERROR: logging before flag.Parse: E0511 15:15:21.761474 1 nanny_lib.go:110] the server could not find the requested resource
    
    ERROR: logging before flag.Parse: I0511 15:15:31.769615 1 nanny_lib.go:108] Resources are not within the expected limits, updating the deployment. Actual: {Limits:map[] Requests:map[cpu:{i:{value:10 scale:-3} d:{Dec:} s:10m Format:DecimalSI} memory:{i:{value:157286400 scale:0} d:{Dec:} s:150Mi Format:BinarySI}]} Expected: {Limits:map[cpu:{i:{value:36000000 scale:-9} d:{Dec:} s: Format:DecimalSI} memory:{i:{value:0 scale:0} d:{Dec:0xc4204c7140} s: Format:BinarySI}] Requests:map[cpu:{i:{value:36000000 scale:-9} d:{Dec:} s: Format:DecimalSI} memory:{i:{value:0 scale:0} d:{Dec:0xc4204c7140} s: Format:BinarySI}]}
    
    ERROR: logging before flag.Parse: E0511 15:15:31.771607 1 nanny_lib.go:110] the server could not find the requested resource
      12 天 后
      25 天 后
      1 个月 后
      5 个月 后

      node监控失效,没有数据。
      pod都处于running状态。
      报错在kube-state-metrics中
      E1223 07:37:25.470025 1 reflector.go:382] pkg/mod/k8s.io/client-go@v0.0.0-20191109102209-3c0d1af94be5/tools/cache/reflector.go:108: expected type *v1.MutatingWebhookConfiguration, but watch event object had type *v1beta1.MutatingWebhookConfiguration