huanggze Kubernetes v1.16.7
pod 监控失效,没数据 ,集群监控正常
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
huanggzeK零SK壹S
jackjun724 如果需要远程协助,请发 tv (12.x 版本)到 kubesphere@yunify.com
huanggze 发了邮件没人回啊
huanggzeK零SK壹S
jackjun724 好的,你还在线不
huanggzeK零SK壹S
jackjun724 能约个时间吗?留一个你方便的日期和时间
huanggze 已经解决 改了权限重启k8s就好了
jackjun724 你好怎么改的权限,能发一下吗
haitang5445K零S
请问修改了什么权限
huanggzeK零SK壹S
你们用的什么 k8s 版本,ks 2.1.1 推荐用 1.16 的版本。ks 2.1.1 发布以后的 k8s 版本可能有坑
haitang5445K零S
huanggze 哈哈 我用的是1.17.4
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
改权限参考这个
https://kubesphere.com.cn/forum/d/1299/5
改完以后重启集群就好了,可能是K8s版本问题,这个只在本地K8s集群出现了,在AWS EKS上没发现