minor changes
This commit is contained in:
parent
06e87ee507
commit
d28296a082
@ -1,8 +1,8 @@
|
|||||||
kind: Role
|
kind: Role
|
||||||
apiVersion: rbac.authorization.k8s.io/v1beta1
|
apiVersion: rbac.authorization.k8s.io/v1beta1
|
||||||
metadata:
|
metadata:
|
||||||
namespace: development
|
namespace: staff
|
||||||
name: developer
|
name: staff
|
||||||
rules:
|
rules:
|
||||||
- apiGroups: ["", "extensions", "apps"]
|
- apiGroups: ["", "extensions", "apps"]
|
||||||
resources: ["deployments", "replicasets", "pods"]
|
resources: ["deployments", "replicasets", "pods"]
|
||||||
|
|||||||
@ -1,13 +1,13 @@
|
|||||||
kind: RoleBinding
|
kind: RoleBinding
|
||||||
apiVersion: rbac.authorization.k8s.io/v1beta1
|
apiVersion: rbac.authorization.k8s.io/v1beta1
|
||||||
metadata:
|
metadata:
|
||||||
name: developer-role-binding
|
name: staff-role-binding
|
||||||
namespace: development
|
namespace: staff
|
||||||
subjects:
|
subjects:
|
||||||
- kind: User
|
- kind: User
|
||||||
name: anna
|
name: anna
|
||||||
apiGroup: ""
|
apiGroup: ""
|
||||||
roleRef:
|
roleRef:
|
||||||
kind: Role
|
kind: Role
|
||||||
name: developer
|
name: staff
|
||||||
apiGroup: ""
|
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