File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ apiVersion : rbac.authorization.k8s.io/v1
2+ kind : ClusterRoleBinding
3+ metadata :
4+ name : anubispaulista-view-cluster
5+ subjects :
6+ # this references our stop-gap SA via its unique name/namespace combo
7+ - kind : ServiceAccount
8+ name : anubispaulista
9+ namespace : rbac-admin
10+ # this is for later when we actually have some kind of authentication infra
11+ # - kind: User
12+ # name: anubispaulista@nekropolis.irminsul
13+ # apiGroup: rbac.authorization.k8s.io
14+ roleRef :
15+ kind : ClusterRole
16+ # TODO: we will want to aggregate some extra permissions into this default role
17+ # for all of our custom resources
18+ # until then, this should work however
19+ # https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles
20+ # k get clusterrole view -o yaml
21+ # view provides read-only access to most things, excluding secrets
22+ name : view
23+ apiGroup : rbac.authorization.k8s.io
Original file line number Diff line number Diff line change 44resources :
55 - namespace.yaml
66 - rolebinding.yaml
7+ - clusterrolebinding.yaml
78 - serviceaccount.yaml
Original file line number Diff line number Diff line change @@ -65,3 +65,16 @@ subjects:
6565- kind : ServiceAccount
6666 name : anubispaulista
6767 namespace : rbac-admin
68+ ---
69+ apiVersion : rbac.authorization.k8s.io/v1
70+ kind : ClusterRoleBinding
71+ metadata :
72+ name : anubispaulista-view-cluster
73+ roleRef :
74+ apiGroup : rbac.authorization.k8s.io
75+ kind : ClusterRole
76+ name : view
77+ subjects :
78+ - kind : ServiceAccount
79+ name : anubispaulista
80+ namespace : rbac-admin
You can’t perform that action at this time.
0 commit comments