I created a cluster role "try-usr"
kind: ClusterRole apiVersion: rbac.authorization.k8s.io/v1 metadata: name: try-usr rules:
While accessing the Web UI(Dashboard), it's throwing an error as follows:
{ "kind": "Status", "apiVersion": "v1", "metadata": {
}, "status": "Failure", "message": "services \"https:kubernetes-dashboard:\" is forbidden: User \"xyz\" cannot get services/proxy in the namespace \"kube-system\"", "reason": "Forbidden", "details": { "name": "https:kubernetes-dashboard:", "kind": "services" }, "code": 403 }
Depending on the kubernetes version, the dashboard will require different permissions according to the docs
v1.7
v1.8