dashboard service-account must implement cluster-admin role for full dashboard access
https://github.com/aws-samples/aws-workshop-for-kubernetes/tree/master/02-path-working-with-clusters/201-cluster-monitoring#kubernetes-dashboard
The instructions for setting up the dashboard don't provide for full cluster access.
They should be modified to guide the user in provisioning/binding a cluster-admin-level role and retrieving the associated secret's token in order to login to the dashboard.
To do this, we'll reference the steps documented here: https://docs.aws.amazon.com/eks/latest/userguide/dashboard-tutorial.html#eks-admin-service-account
The steps should reference the EKS tutorial, however, it should be adapted to this workshop so that the user can access the dashboard via their Cloud9 test Web UI.
/assign @vjsikha
Create a file called 'admin-cluster-role-binding.yaml' with the text below: apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: kubernetes-dashboard roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: cluster-admin subjects:
- kind: ServiceAccount name: kubernetes-dashboard namespace: kube-system
Apply the cluster role binding to your cluster: kubectl apply -f admin-cluster-role-binding.yaml
Output: clusterrolebinding.rbac.authorization.k8s.io "kubernetes-dashboard" created