-
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
Compatibility with Kubernetes 1.10 #2976
Comments
@richerlariviere have you tied
instead of
? |
I'm getting this error:
From my research it seems to be a pretty common issue but I found no real solution. Using |
I've set up dashboard on a brand new cluster with Kubernetes 1.10.1, without any authentication or security whatsoever (for now) and it worked. However, there are no metrics shown from Heapster. I am confused, whether Heapster is deprecated for kubernetes >= 1.8? It is, according to: kubernetes-retired/heapster#1840 (comment) . Will the dashboard support metrics-server instead of Heapster now? |
I try to connect on
|
@richerlariviere getting the same error as you. Dashboard Login with Token (Admin Service Account) worked without any problem with k8s 1.9.x and since 1.10.x i'm getting the "you do not have permission" error. |
@floreks is there any known login/permission bug with dashboard and k8s 1.10.x? |
I am seeing this problem too (on 1.10.2) .. looks like dashboard cant authorize correctly with cluster and all API responses fails
|
@suneeta-mall your problem seems like a different one. Your log messages contain:
which says connection to apiserver is fine. Do you have Heapster running? Maybe this comment will help you? I managed to get kube-dashboard working with secure apiserver 1.10.2 and Heapster |
@xmik Yes I setup heapster after the fact but thats not related to forbidden log at the end of log message .. My understanding of the situation is that connection to API server is fine resource access ex forbidden |
@suneeta-mall Can you try if applying this (with
|
@xmik Sounds about right ... Using ClusterRole instead of Role (as used in recommended dashboard spec) seems to do the trick. Now I am confused why recommended dashboard RBAC is Role* and not ClusterRole* ... My reading of this is to control access by namespace (same or all) .. and dashboard should have all ? Perhaps I need to read more on the difference between these two. Thanks for the tip :) EDIT: I can confirm though using ClusterRole with explicit verb (ex list) as suggested by @xmik fixes the dashboard but I am not sure why thats a problem with 1.10 .. I have another kube cluster on 1.9.x with RBAC Role on configmap without list and it seems to work fine. |
I tested it on Kubernetes 1.10.3 and I got the same problem (even though my Dashboard is binded with cluster-admin clusterrolebinding). |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
I'm closing this issue as for now the discussion provides a temporary workaround before we get an update from the Kubernetes Dashboard project. Please follow issue #2986 if you want to track the switch from Heapster to Metrics API. |
Environment
Steps to reproduce
This is more a question rather than an issue. I configured a brand new cluster with Kubernetes 1.10.1 and I wanted to know if this version is fully supported at this moment. If I look at the compatibility matrix from the wiki, I can't see any reference to K8s 1.10.
If this K8s 1.10 is supported (in that case we'll have to change the issue name also), then follow those steps:
Create a basic cluster. I assume the user you use has a ClusterRoleBinding assigned to cluster-admin. This user uses an openID authentication using Azure. I'm using RBAC with aggregated apis which means I set
requestheader-allowed-names
,requestheader-client-ca-file
,requestheader-extra-headers-prefix
,requestheader-group-headers
,requestheader-username-headers
flags.Install the dashboard (
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml
)Access the dashboard using
kubectl proxy
. I don't have the login/skip part of the dashboard configuration as I can already access everything.Go to setting page (http://localhost:8001/api/v1/namespaces/kube-system/services/kubernetes-dashboard/proxy/#!/settings?namespace=kube-system)
Observed result
An error is displayed:
Expected result
I should have access to the settings page as my user is a
cluster-admin
andcluster-admin
is in thesystem:masters
Group. I guess it's a problem with Dashboard RBAC because I can modify the configmap containing the same parameters as the setting page using:$ kubectl edit configmaps/kubernetes-dashboard-settings -n kube-system
Comments
Dashboard ClusterRoleBinding
Dashboard Service
Dashboard Deployment
The text was updated successfully, but these errors were encountered: