k8s metric-server报错 x509: cannot validate certificate for 10.129.37.4 because it doesn't contain any IP SANs"


I1124 08:20:10.685938       1 server.go:188] "Failed probe" probe="metric-storage-ready" err="not metrics to serve"
I1124 08:20:20.683491       1 server.go:188] "Failed probe" probe="metric-storage-ready" err="not metrics to serve"
E1124 08:20:24.452739       1 scraper.go:139] "Failed to scrape node" err="Get \"https://10.129.37.4:10250/stats/summary?only_cpu_and_memory=true\": x509: cannot validate certificate for 10.129.37.4 because it doesn't contain any IP SANs" node="kubernetes-master"
E1124 08:20:24.466897       1 scraper.go:139] "Failed to scrape node" err="Get \"https://10.129.37.6:10250/stats/summary?only_cpu_and_memory=true\": x509: cannot validate certificate for 10.129.37.6 because it doesn't contain any IP SANs" node="aly-hn1-inner-bdi-k8s-infra-stg-003"
E1124 08:20:24.472555       1 scraper.go:139] "Failed to scrape node" err="Get \"https://10.129.37.5:10250/stats/summary?only_cpu_and_memory=true\": x509: cannot validate certificate for 10.129.37.5 because it doesn't contain any IP SANs" node="aly-hn1-inner-bdi-k8s-infra-stg-002"
I1124 08:20:30.683388       1 server.go:188] "Failed probe" probe="metric-storage-ready" err="not metrics to serve"
E1124 08:20:39.452611       1 scraper.go:139] "Failed to scrape node" err="Get \"https://10.129.37.4:10250/stats/summary?only_cpu_and_memory=true\": x509: cannot validate certificate for 10.129.37.4 because it doesn't contain any IP SANs" node="kubernetes-master"
E1124 08:20:39.459697       1 scraper.go:139] "Failed to scrape node" err="Get \"https://10.129.37.6:10250/stats/summary?only_cpu_and_memory=true\": x509: cannot validate certificate for 10.129.37.6 because it doesn't contain any IP SANs" node="aly-hn1-inner-bdi-k8s-infra-stg-003"
E1124 08:20:39.467571       1 scraper.go:139] "Failed to scrape node" err="Get \"https://10.129.37.5:10250/stats/summary?only_cpu_and_memory=true\": x509: cannot validate certificate for 10.129.37.5 because it doesn't contain any IP SANs" node="aly-hn1-inner-bdi-k8s-infra-stg-002"
I1124 08:20:40.683356       1 server.go:188] "Failed probe" probe="metric-storage-ready" err="not metrics to serve"
I1124 08:20:50.683422       1 server.go:188] "Failed probe" probe="metric-storage-ready" err="not metrics to serve"
E1124 08:20:54.459333       1 scraper.go:139] "Failed to scrape node" err="Get \"https://10.129.37.6:10250/stats/summary?only_cpu_and_memory=true\": x509: cannot validate certificate for 10.129.37.6 because it doesn't contain any IP SANs" node="aly-hn1-inner-bdi-k8s-infra-stg-003"
E1124 08:20:54.463364       1 scraper.go:139] "Failed to scrape node" err="Get \"https://10.129.37.4:10250/stats/summary?only_cpu_and_memory=true\": x509: cannot validate certificate for 10.129.37.4 because it doesn't contain any IP SANs" node="kubernetes-master"
E1124 08:20:54.470080       1 scraper.go:139] "Failed to scrape node" err="Get \"https://10.129.37.5:10250/stats/summary?only_cpu_and_memory=true\": x509: cannot validate certificate for 10.129.37.5 because it doesn't contain any IP SANs" node="aly-hn1-inner-bdi-k8s-infra-stg-002"
I1124 08:21:00.683528       1 server.go:188] "Failed probe" probe="metric-storage-ready" err="not metrics to serve"


报错原因:

认证方面的


临时解决方案


设置启动脚本添加跳过tls认证:


- --kubelet-insecure-tls

上一篇:体验云起Linux服务器的思考与总结--《我的linux初体验》


下一篇:对于容器环境来说 全栈监控究竟意味着什么?