Metrics-server节点不能通信

环境信息:
K3s 版本:

k3s version v1.25.7+k3s1 (f7c20e23)
go version go1.19.6

节点 CPU 架构、操作系统和版本::
Linux h3c-01 3.10.0-957.el7.x86_64 #1 SMP Thu Nov 8 23:39:32 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

集群配置:
AutoK3s native模式一键部署
v1.25.7+k3s1
2Master
1node
问题描述:
kube-system / metrics-serve服务日志报错如下 三台机器防火墙全部关闭

预期结果:
可以正常通信

实际结果:
没有

附加上下文/日志:

日志
417 08:51:26.614596       1 scraper.go:140] "Failed to scrape node" err="Get \"https://192.168.13.13:10250/metrics/resource\": context deadline exceeded" node="h3c-03"
E0417 08:51:41.613205       1 scraper.go:140] "Failed to scrape node" err="Get \"https://192.168.13.13:10250/metrics/resource\": context deadline exceeded" node="h3c-03"
E0417 08:51:41.613384       1 scraper.go:140] "Failed to scrape node" err="Get \"https://192.168.13.11:10250/metrics/resource\": context deadline exceeded" node="h3c-01"
E0417 08:51:56.614967       1 scraper.go:140] "Failed to scrape node" err="Get \"https://192.168.13.13:10250/metrics/resource\": context deadline exceeded" node="h3c-03"
E0417 08:51:56.615719       1 scraper.go:140] "Failed to scrape node" err="Get \"https://192.168.13.11:10250/metrics/resource\": context deadline exceeded" node="h3c-01"
E0417 08:52:11.613932       1 scraper.go:140] "Failed to scrape node" err="Get \"https://192.168.13.13:10250/metrics/resource\": context deadline exceeded" node="h3c-03"
E0417 08:52:11.614070       1 scraper.go:140] "Failed to scrape node" err="Get \"https://192.168.13.11:10250/metrics/resource\": context deadline exceeded" node="h3c-01"
E0417 08:52:26.617582       1 scraper.go:140] "Failed to scrape node" err="Get \"https://192.168.13.11:10250/metrics/resource\": context deadline exceeded" node="h3c-01"
E0417 08:52:26.618298       1 scraper.go:140] "Failed to scrape node" err="Get \"https://192.168.13.13:10250/metrics/resource\": context deadline exceeded" node="h3c-03"
E0417 08:52:41.617419       1 scraper.go:140] "Failed to scrape node" err="Get \"https://192.168.13.13:10250/metrics/resource\": context deadline exceeded" node="h3c-03"
E0417 08:52:41.618674       1 scraper.go:140] "Failed to scrape node" err="Get \"https://192.168.13.11:10250/metrics/resource\": context deadline exceeded" node="h3c-01"
E0417 08:52:56.613840       1 scraper.go:140] "Failed to scrape node" err="Get \"https://192.168.13.13:10250/metrics/resource\": context deadline exceeded" node="h3c-03"
E0417 08:52:56.614083       1 scraper.go:140] "Failed to scrape node" err="Get \"https://192.168.13.11:10250/metrics/resource\": context deadline exceeded" node="h3c-01"
E0417 08:53:11.614796       1 scraper.go:140] "Failed to scrape node" err="Get \"https://192.168.13.11:10250/metrics/resource\": context deadline exceeded" node="h3c-01"
E0417 08:53:11.618379       1 scraper.go:140] "Failed to scrape node" err="Get \"https://192.168.13.13:10250/metrics/resource\": context deadline exceeded" node="h3c-03"
E0417 08:53:26.616968       1 scraper.go:140] "Failed to scrape node" err="Get \"https://192.168.13.11:10250/metrics/resource\": context deadline exceeded" node="h3c-01"
E0417 08:53:26.617280       1 scraper.go:140] "Failed to scrape node" err="Get \"https://192.168.13.13:10250/metrics/resource\": context deadline exceeded" node="h3c-03"

你安装时候,有没有设置一些关于 kubelet 或者 api-server 的参数?还是提供下 autok3s 创建集群的详细参数吧

你好
autok3s create --provider native --datastore ‘mysql://XXX/test’ --docker-script https://get.docker.com --k3s-channel stable --k3s-install-mirror INSTALL_K3S_MIRROR=cn --k3s-install-script https://rancher-mirror.rancher.cn/k3s/k3s-install.sh --k3s-version v1.26.3+k3s1 --name coud13 --ssh-key-name 13 --ssh-key-passphrase XXXX --ssh-key-path /root/.autok3s/coud13/id_rsa --ssh-port 22 --ssh-user root --master-ips 192.168.13.12,192.168.13.11 --worker-ips 192.168.13.13 --registry

这是现在的,之前的命令和这个只有版本区别,但是换了现在的v1.26.3+k3s1 版本就可以了 :joy: