pod 一直未就绪
kube-system metrics-server-7764f6c67c-2kts9 0/1 Running 0 10m

kubect describe 查看 就绪探针未通过
Normal Started 3m19s kubelet Started container metrics-server
Warning Unhealthy 5s (x20 over 2m55s) kubelet Readiness probe failed: HTTP probe failed with statuscode: 500

查看pod 日志,提示证书问题
“Failed to scrape node” err=“Get “https://172.29.21.67:10250/metrics/resource”: x509: cannot validate certificate for 172.29.21.67 because it doesn’t contain any IP SANs” node="server01

在yaml文件添加 - --kubelet-insecure-tls不校验证书即可

在这里插入图片描述

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐