-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Heapster does not work any more out of the box #2180
Comments
Something had to change on either kubernetes or heapster side because we haven't touched it for quite some time and it just stopped working. The actual reason is listed on backend start: |
As a workaround for now you can pass |
Alright, thank you! |
what is the solution exactly? |
It is not required anymore in |
@floreks I tried this 15 minutes ago with Kubernetes 1.7.4 and Dashboard 1.6.3 and it didn't work without that flag. |
It usually means networking/cluster issue. You can check dashbord logs. It prints initial heapster health check result. |
@floreks I'm not sure this is the relevant snippet but here goes:
To easily recreate this environment clone this pull request and run |
I don't see any issues here.
This is just an information. Not every page/resource contains metrics thus it's skipped for some. |
@floreks Pasted all of the log here: https://pastebin.com/KU8RbWpM EDIT: Heapster log below if it matters:
|
Everything looks fine. No errors. |
So why do I still need that argument to the dashboard for it to pick up metrics? |
Remove argument restart dashboard and show logs from dashboard. |
That's what you're looking at. |
It is not full log. At the beginning when dashboard is starting there are more information. Use |
For anyone who finds this discussion in the future this is what came out of it: #2306 |
In my case I had to grant a new RBAC permission to the ClusterRole on the dashboard. Looks like between 1.6.1 and 1.6.3 it now requires the
|
It has always required it for in-cluster heapster detection. Also installation command from our README makes sure that dashboard has admin privileges in the cluster. |
@floreks Interesting, metrics definitely worked before without needing that permission. We don't give dashboard cluster-admin, we use the token header authentication and use an oath proxy in front of it. |
Well it was always required if cluster had authorization mode RBAC enabled. Method to detect heapster using in-cluster config did not change, ever. We have only added additional health check. |
surely this is all to do with https://github.com/kubernetes/dashboard/issues/2306 |
restarting dashboard after 5 mins worked in my case: |
I'm currently working on adding periodic check so dashboard will try to discover heapster for around 10 min after start. In case they are deployed together it will be more than enough to automatically enable metrics once heapster scrapes some data. |
We are seeing the similar problem in v1.10 - Version details:- Created the dashboard using - |
I'm seeing this as well. |
@jitendra-saal Upgrading to 1.8.3 works for me now. |
@jitendra-saal were you able to solve it . Even i am getting this same message . |
@shashankpai I am facing same issue in v1.14.1 |
If I am running 1.6.2 the logs give me the output:
And no metrics will be shown on the dashboard pages. I am using K8S 1.7.1 with the following heapster image config:
Is there any configuration missing within the
yml
file here?The text was updated successfully, but these errors were encountered: