unable to fully scrape metrics: unable to fully scrape metrics from node

不念不忘少年蓝@ 2022-10-12 15:59 65阅读 0赞
  1. #根据日志发现,原因是unable to fully scrape metrics: unable to fully scrape metrics from node docker-desktop: unable to fetch metrics from node docker-desktop: Get "https://192.168.65.3:10250/stats/summary?only_cpu_and_memory=true": x509: cannot validate certificate for 192.168.65.3 because it doesn't contain any IP SANs
  2. #如何修复呢? -添加- --kubelet-insecure-tls
  3. template:
  4. metadata:
  5. labels:
  6. k8s-app: metrics-server
  7. spec:
  8. containers:
  9. - args:
  10. - --cert-dir=/tmp
  11. - --secure-port=4443
  12. - --kubelet-preferred-address-types=InternalIP,ExternalIP,Hostname
  13. - --kubelet-use-node-status-port
  14. - --kubelet-insecure-tls
  15. image: k8s.gcr.io/metrics-server/metrics-server:v0.5.0

如何修复呢? -添加- —kubelet-insecure-tls

发表评论

表情:
评论列表 (有 0 条评论,65人围观)

还没有评论,来说两句吧...

相关阅读