创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
操作系统信息
例如:虚拟机/物理机,Centos7.5/Ubuntu18.04,4C/8G
Kubernetes版本信息
将 kubectl version
命令执行结果贴在下方
“v1.21.5”
容器运行时
将 docker version
/ crictl version
/ nerdctl version
结果贴在下方
20.10.10
KubeSphere版本信息
例如:v2.1.1/v3.0.0。离线安装还是在线安装。在已有K8s上安装还是使用kk安装。
v3.2.0
问题是什么
报错日志是什么,最好有截图。
metrics-server查看日志,报错如下:
E0112 10:42:37.514281 1 server.go:132] unable to fully scrape metrics: unable to fully scrape metrics from node edgenode-dcen: unable to fetch metrics from node edgenode-dcen: Get "https://10.63.131.39:10351/stats/summary?only_cpu_and_memory=true": dial tcp 10.63.131.39:10351: i/o timeout
E0112 10:43:37.510481 1 server.go:132] unable to fully scrape metrics: unable to fully scrape metrics from node edgenode-dcen: unable to fetch metrics from node edgenode-dcen: Get "https://10.63.131.39:10351/stats/summary?only_cpu_and_memory=true": dial tcp 10.63.131.39:10351: i/o timeout
E0112 10:44:37.540247 1 server.go:132] unable to fully scrape metrics: unable to fully scrape metrics from node edgenode-dcen: unable to fetch metrics from node edgenode-dcen: Get "https://10.63.131.39:10351/stats/summary?only_cpu_and_memory=true": dial tcp 10.63.131.39:10351: i/o timeout
E0112 10:45:37.521203 1 server.go:132] unable to fully scrape metrics: unable to fully scrape metrics from node edgenode-dcen: unable to fetch metrics from node edgenode-dcen: Get "https://10.63.131.39:10351/stats/summary?only_cpu_and_memory=true": dial tcp 10.63.131.39:10351: i/o timeout
E0112 10:46:37.501362 1 server.go:132] unable to fully scrape metrics: unable to fully scrape metrics from node edgenode-dcen: unable to fetch metrics from node edgenode-dcen: Get "https://10.63.131.39:10351/stats/summary?only_cpu_and_memory=true": dial tcp 10.63.131.39:10351: i/o timeout

通过10350访问可以访问

但是metric-server里面访问的确实10351,如何修改成10350