1.Master node(Ubuntu 16.04)
2. Worker node (Windows 2019)
To get the metrics of both master and worker nodes with the metrics server
We have setup a master node and a windows worker node. We have installed our demo containers in both the nodes. Inorder to get the metrics of the pods that are running in both the nodes we installed metrics server on the master node. Both the nodes are inside vpn network. Both the nodes are able to ping each other. We used the below link to install the metrics server
https://github.com/kubernetes-incubator/metrics-server – used 1.8+
Below is my metrics server service config file:
Please edit the object below. Lines beginning with a ‘#’ will be ignored,
and an empty file will abort the edit. If an error occurs while saving this file will be
reopened with the relevant failures.
- port: 443
What we found is the metrics server is able to get the metrics of the node and pods running on the Linux master node but we are unable to get the metrics of the windows node and its pods.
Below are the logs obtained by running the logs command:
$ kubectl logs metrics-server-8cccd88dc-8dtdl -n kube-system
E0307 17:53:16.372840 1 manager.go:102] unable to fully collect metrics: [unable to fully scrape metrics from source kubelet_summary:ec2amaz-b39mdae: unable to fetch metrics from Kubelet ec2amaz-b39mdae (10.244.1.2): Get https://10.244.1.2:10250/stats/summary/: dial tcp 10.244.1.2:10250: i/o timeout, unable to fully scrape metrics from source kubelet_summary:ec2amaz-3679ret: unable to fetch metrics from Kubelet ec2amaz-3679ret (10.244.2.2): Get https://10.244.2.2:10250/stats/summary/: dial tcp 10.244.2.2:10250: i/o timeout]
Can you please let us know what could be the issue