Packer.Images/ansible/roles/firstboot/files/ansible_payload/bootstrap/templates/serviceaccount.j2
Danny Bessems c1bff94cd1
Some checks failed
continuous-integration/drone/push Build is failing
Parallel build of bootstrap/upgrade ova;Split ansible tasks respectively
2023-01-18 15:09:32 +01:00

19 lines
464 B
Django/Jinja

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