19 lines
464 B
Plaintext
19 lines
464 B
Plaintext
|
apiVersion: v1
|
||
|
kind: ServiceAccount
|
||
|
metadata:
|
||
|
name: {{ _template.account.name }}
|
||
|
namespace: {{ _template.account.namespace }}
|
||
|
---
|
||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||
|
kind: ClusterRoleBinding
|
||
|
metadata:
|
||
|
name: {{ _template.clusterrolebinding.name }}
|
||
|
subjects:
|
||
|
- kind: ServiceAccount
|
||
|
name: {{ _template.account.name }}
|
||
|
namespace: {{ _template.account.namespace }}
|
||
|
roleRef:
|
||
|
kind: ClusterRole
|
||
|
name: cluster-admin
|
||
|
apiGroup: rbac.authorization.k8s.io
|