Packer.Images/ansible/roles/firstboot/files/ansible_payload/templates/serviceaccount.j2
Danny Bessems 6c3867fb57
Some checks failed
continuous-integration/drone/push Build is failing
Fix linting error;Add workload cluster generation/configuration
2023-01-05 16:42:20 +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