Skip to content

Kubernetes: Ошибки с доступом в dashboard

При переходе по ссылке http://localhost:8001/api/v1/namespaces/kube-system/services/http:kubernetes-dashboard:/proxy/#!/overview?namespace=default возникла следующая ошибка: namespaces is forbidden: User «system:serviceaccount:kube-system:kubernetes-dashboard» cannot list resource «namespaces» in API group «» at the cluster scope

Вариант решения:

kubectl create clusterrolebinding kubernetes-dashboard --clusterrole=cluster-admin --serviceaccount=kube-system:kubernetes-dashboard
Published inKubernetes

Be First to Comment

Залишити відповідь

Ваша e-mail адреса не оприлюднюватиметься. Обов’язкові поля позначені *