Open Patafix opened 5 years ago
Is kubectl top pod
working for you? (that uses the same endpoint)
@hjacobs Yes it's work, even kube-ops-view work fine, but generate a lot of errors in the metrics pod.
The more i look it's seem kube-ops-view request terminated pod (Cron Job)
Thanks this helped me with my local workstation cluster I'm running via kind cluster getting metrics server to consume metrics in addition to allowing kube ops view to show usage values.
In case this helps someone else I added this to the metrics server deployment.(Not sure you need the - /metrics-server but I'm using it and it works)
containers:
- command:
- /metrics-server
- --logtostderr
- --kubelet-preferred-address-types=InternalIP
- --kubelet-insecure-tls
- --metric-resolution=10s
image: k8s.gcr.io/metrics-server-amd64:v0.3.3
Metrics server is running fine with no warnings, installed with helm on k8s 1.11
As soon as i launch kube-ops-view i get a lot of error on the metrics servers, full of this kind of error (no other errors)
E0227 18:49:06.479377 1 reststorage.go:144] unable to fetch pod metrics for pod bar/foo: no metrics known for pod
Kube Ops View is installed with helm :
Logs of kubeopsview :
No errors in the logs