first commit
This commit is contained in:
27
admissioncontrollers/introduction/rbac.yaml
Normal file
27
admissioncontrollers/introduction/rbac.yaml
Normal file
@@ -0,0 +1,27 @@
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: example-webhook
|
||||
namespace: default
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRole
|
||||
metadata:
|
||||
name: example-webhook
|
||||
rules:
|
||||
- apiGroups: [""]
|
||||
resources: ["pods"]
|
||||
verbs: ["get", "watch", "list"]
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: example-webhook
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: example-webhook
|
||||
namespace: default
|
||||
roleRef:
|
||||
kind: ClusterRole
|
||||
name: example-webhook
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
Reference in New Issue
Block a user