kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch17/rbac-tools/rbac.yaml

15 lines
357 B
YAML

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: rbac-tools-admin
namespace: default
labels:
kiamol: ch17
subjects:
- kind: ServiceAccount
name: rbac-tools
namespace: default
roleRef:
kind: ClusterRole
name: cluster-admin # think *very* carefully before you do this!
apiGroup: rbac.authorization.k8s.io