30 lines
533 B
YAML
30 lines
533 B
YAML
|
apiVersion: v1
|
||
|
kind: ServiceAccount
|
||
|
metadata:
|
||
|
name: cluster-admin
|
||
|
namespace: kube-system
|
||
|
|
||
|
---
|
||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||
|
kind: ClusterRole
|
||
|
metadata:
|
||
|
name: cluster-admin
|
||
|
rules:
|
||
|
- apiGroups: ["*"]
|
||
|
resources: ["*"]
|
||
|
verbs: ["*"]
|
||
|
|
||
|
---
|
||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||
|
kind: ClusterRoleBinding
|
||
|
metadata:
|
||
|
name: cluster-admin
|
||
|
subjects:
|
||
|
- kind: ServiceAccount
|
||
|
name: cluster-admin
|
||
|
namespace: kube-system
|
||
|
roleRef:
|
||
|
kind: ClusterRole
|
||
|
name: cluster-admin
|
||
|
apiGroup: rbac.authorization.k8s.io
|