kubeadm安装kubernetes1.16.0(二-配置安装metrics-server)

白昼怎懂夜的黑 提交于 2019-11-30 12:30:50
  1. 安装metrics-server
  • kubeadm默认安装是就安装了coredns
  • 下载yaml文件
    github的链接metrics-server
    所有的yaml文件都需要下载到本地
  • 应用
  1. 问题处理
  • 连接node1报错,报错信息为manager.go:111] unable to fully collect metrics: [unable to fully scrape metrics from source kubelet_summary:node1: unable to fetch metrics from Kubelet node1 (node1): Get https://node1:10250/stats/summary?only_cpu_and_memory=true: dial tcp: lookup node1 on 10.96.0.10:53: no such host, unable to fully scrape metrics from source kubelet_summary:node2: unable to fetch metrics from Kubelet node2 (node2): Get https://node2:10250/stats/summary?only_cpu_and_memory=true: dial tcp: lookup node2 on 10.96.0.10:53: no such host]

    该问题是服务器节点是自定义hosts,而不是dns,修改coredns的配置即可
  • 认证失败,报错信息为unable to fully collect metrics: [unable to fully scrape metrics from source kubelet_summary:node2: unable to fetch metrics from Kubelet node2 (node2): Get https://node2:10250/stats/summary?only_cpu_and_memory=true: x509: certificate signed by unknown authority, unable to fully scrape metrics from source kubelet_summary:node1: unable to fetch metrics from Kubelet node1 (node1): Get https://node1:10250/stats/summary?only_cpu_and_memory=true: x509: certificate signed by unknown authority]
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!