1. Add a user with the name user1
to dex.
2. Create a ClusterRole access-kubernetes-dashboard
(you might need to add more verbs for read-write access):
apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: access-kubernetes-dashboard rules: - nonResourceURLs: - /ops/portal/kubernetes - /ops/portal/kubernetes/** verbs: - get - head
3. Create a ClusterRoleBinding access-kubernetes-dashboard-user1:
apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: access-kubernetes-dashboard-user1 roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: access-kubernetes-dashboard subjects: - apiGroup: rbac.authorization.k8s.io kind: User name: user1
4. Open Kubernetes Dashboard in a browser: https://<cluster URL>/ops/portal/kubernetes
and enter credentials for user1