18 lines
372 B
YAML
18 lines
372 B
YAML
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: ClusterRoleBinding
|
|
metadata:
|
|
name: test
|
|
roleRef: # points to the Role
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: ClusterRole
|
|
name: admin
|
|
subjects: # points to the ServiceAccount
|
|
- kind: ServiceAccount
|
|
name: test
|
|
namespace: default
|
|
---
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: test
|
|
namespace: default |