Created
January 9, 2018 17:53
-
-
Save grampelberg/c3d2e960f60936a5db2713a746d9b089 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kind: ClusterRoleBinding | |
apiVersion: rbac.authorization.k8s.io/v1 | |
metadata: | |
name: default-view | |
subjects: | |
- kind: ServiceAccount | |
name: kubernetes-dashboard | |
namespace: default | |
- kind: ServiceAccount | |
name: kubernetes-dashboard | |
namespace: kube-system | |
- kind: ServiceAccount | |
name: default | |
namespace: default | |
roleRef: | |
kind: ClusterRole | |
name: view | |
apiGroup: rbac.authorization.k8s.io | |
--- | |
kind: ClusterRole | |
apiVersion: rbac.authorization.k8s.io/v1 | |
metadata: | |
name: view-other-resources | |
rules: | |
- apiGroups: [""] | |
resources: | |
- nodes | |
- secrets | |
verbs: ["get", "watch", "list"] | |
--- | |
kind: ClusterRoleBinding | |
apiVersion: rbac.authorization.k8s.io/v1 | |
metadata: | |
name: view-other-resources | |
subjects: | |
- kind: ServiceAccount | |
name: kubernetes-dashboard | |
namespace: default | |
- kind: ServiceAccount | |
name: kubernetes-dashboard | |
namespace: kube-system | |
roleRef: | |
kind: ClusterRole | |
name: view-other-resources | |
apiGroup: rbac.authorization.k8s.io |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment