dashboard: Pod metrics not working
Issue details
Environment
The dashboard is run as a replication controller in a kubernetes cluster from the image: gcr.io/google_containers/kubernetes-dashboard-amd64:v1.1.0
Dashboard version: v1.1.0
Heapster version: gcr.io/google_containers/kubernetes-dashboard-amd64:v1.1.0
Influx DB version: gcr.io/google_containers/heapster_influxdb:v0.7
Kubernetes version:1.3
Operating system: Centos
Steps to reproduce
Load the dashbord and go to a single pod detauls
Observed result
Everything works apart from pod level metrics
Looking at the dashboard logs I see:
Incoming HTTP/1.1 GET /api/v1/pod/canary/cats-copper-pwl3p request from 172.16.35.0:19646
Getting details of cats-copper-pwl3p pod in canary namespace
Getting pod metrics
Skipping Heapster metrics because of error: invalid character '<' looking for beginning of value
Expected result
Pod level metrics to show as in the screenshots on the dashboard website
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 18 (10 by maintainers)
I looked into this again, and found the issue.
For the service proxy to work, you will need apiserver->pod communication which in our case means to deploy flannel also on the master components. BTW, dashboard-1.4 beta looks really cool!
Action item for us would be to provide better logs for such problems
I think heapster version you’ve provided is wrong 😃
Heapster version: gcr.io/google_containers/kubernetes-dashboard-amd64:v1.1.0Please update, so we can test.