Closed mazzy89 closed 5 years ago
Hmm weird, what's your output of kubectl top nodes
?
➜ kubectl top nodes
error: metrics not available yet
maybe found the reason for that
Probably you are not running metrics-server in your cluster, which is a prerequisite for Kube Eagle to work. I should add that to the readme
Hmm not really
it is deployed there but I got this erroro
metrics-server-5f64dbfb9d-9z9pd metrics-server E0406 09:41:28.843204 1 reststorage.go:129] unable to fetch node metrics for node "ip-172-20-52-190.ec2.internal": no metrics known for node
metrics-server-5f64dbfb9d-9z9pd metrics-server E0406 09:41:28.843218 1 reststorage.go:129] unable to fetch node metrics for node "ip-172-20-33-129.ec2.internal": no metrics known for node
metrics-server-5f64dbfb9d-9z9pd metrics-server E0406 09:41:28.843221 1 reststorage.go:129] unable to fetch node metrics for node "ip-172-20-72-217.ec2.internal": no metrics known for node
metrics-server-5f64dbfb9d-9z9pd metrics-server E0406 09:41:28.843225 1 reststorage.go:129] unable to fetch node metrics for node "ip-172-20-78-107.ec2.internal": no metrics known for node
metrics-server-5f64dbfb9d-9z9pd metrics-server E0406 09:41:28.843229 1 reststorage.go:129] unable to fetch node metrics for node "ip-172-20-119-23.ec2.internal": no metrics known for node
metrics-server-5f64dbfb9d-9z9pd metrics-server E0406 09:41:28.843238 1 reststorage.go:129] unable to fetch node metrics for node "ip-172-20-98-190.ec2.internal": no metrics known for node
metrics-server-5f64dbfb9d-9z9pd metrics-server E0406 09:41:28.843243 1 reststorage.go:129] unable to fetch node metrics for node "ip-172-20-63-138.ec2.internal": no metrics known for node
I am afraid I cannot be a great help figuring out why metrics-server cannot get metrics for your kubernetes nodes, but I'll leave this issue open for a while to see if someone else here experienced that problem as well and could help you.
I'll figure out and report down here the result of my investigation
Adding this arg should solve the issue
--kubelet-preferred-address-types=InternalIP
I'll test it later. Atm afk.
Solved adding these two flags:
- --kubelet-insecure-tls
- --kubelet-preferred-address-types=InternalIP
All good now 😎
Great, glad you could solve it
My prometheus reports metrics like this for all the nodes equals to 0.
Any reasons?