1. 只在1.11上试验成功
2. 测试环境可以这么玩,生成环境还是算了.
报错信息如下
unable to fully collect metrics: [unable to fully scrape metrics from source kubelet_summary:mywork: unable to fetch metrics from Kubelet mywork (mywork): Get https://mywork:10250/stats/summary/: dial tcp: i/o timeout, unable to fully scrape metrics from source kubelet_summary:marktest: unable to fetch metrics from Kubelet marktest (marktest): Get https://marktest:10250/stats/summary/: dial tcp: i/o timeout]
解决方法
在metrics-server-deployment.yaml 中添加如下command部分
containers:
- name: metrics-server