minor changes
This commit is contained in:
parent
06e87ee507
commit
d28296a082
@ -1,8 +1,8 @@
|
||||
kind: Role
|
||||
apiVersion: rbac.authorization.k8s.io/v1beta1
|
||||
metadata:
|
||||
namespace: development
|
||||
name: developer
|
||||
namespace: staff
|
||||
name: staff
|
||||
rules:
|
||||
- apiGroups: ["", "extensions", "apps"]
|
||||
resources: ["deployments", "replicasets", "pods"]
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
kind: RoleBinding
|
||||
apiVersion: rbac.authorization.k8s.io/v1beta1
|
||||
metadata:
|
||||
name: developer-role-binding
|
||||
namespace: development
|
||||
name: staff-role-binding
|
||||
namespace: staff
|
||||
subjects:
|
||||
- kind: User
|
||||
name: anna
|
||||
apiGroup: ""
|
||||
roleRef:
|
||||
kind: Role
|
||||
name: developer
|
||||
name: staff
|
||||
apiGroup: ""
|
||||
|
||||
13
rolebindstudents.yaml
Normal file
13
rolebindstudents.yaml
Normal file
@ -0,0 +1,13 @@
|
||||
kind: RoleBinding
|
||||
apiVersion: rbac.authorization.k8s.io/v1beta1
|
||||
metadata:
|
||||
name: students-role-binding
|
||||
namespace: students
|
||||
subjects:
|
||||
- kind: User
|
||||
name: anna
|
||||
apiGroup: ""
|
||||
roleRef:
|
||||
kind: Role
|
||||
name: students
|
||||
apiGroup: ""
|
||||
10
students-role.yaml
Normal file
10
students-role.yaml
Normal file
@ -0,0 +1,10 @@
|
||||
kind: Role
|
||||
apiVersion: rbac.authorization.k8s.io/v1beta1
|
||||
metadata:
|
||||
namespace: students
|
||||
name: students
|
||||
rules:
|
||||
- apiGroups: ["", "extensions", "apps"]
|
||||
resources: ["deployments", "replicasets", "pods"]
|
||||
verbs: ["list", "get", "watch"]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user