2018-08-29 17:20:41 +08:00
|
|
|
---
|
|
|
|
kind: ClusterRoleBinding
|
2020-04-15 04:14:04 +08:00
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
2018-08-29 17:20:41 +08:00
|
|
|
metadata:
|
|
|
|
name: tiller
|
|
|
|
namespace: {{ tiller_namespace }}
|
|
|
|
subjects:
|
|
|
|
- kind: ServiceAccount
|
2020-10-19 18:04:13 +08:00
|
|
|
name: {{ tiller_service_account }}
|
2018-08-29 17:20:41 +08:00
|
|
|
namespace: {{ tiller_namespace }}
|
|
|
|
roleRef:
|
|
|
|
kind: ClusterRole
|
|
|
|
name: cluster-admin
|
|
|
|
apiGroup: rbac.authorization.k8s.io
|
|
|
|
{% if podsecuritypolicy_enabled %}
|
|
|
|
---
|
|
|
|
kind: ClusterRoleBinding
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
metadata:
|
|
|
|
name: psp:tiller
|
|
|
|
subjects:
|
|
|
|
- kind: ServiceAccount
|
2020-10-19 18:04:13 +08:00
|
|
|
name: {{ tiller_service_account }}
|
2018-08-29 17:20:41 +08:00
|
|
|
namespace: {{ tiller_namespace }}
|
|
|
|
roleRef:
|
|
|
|
apiGroup: rbac.authorization.k8s.io
|
|
|
|
kind: ClusterRole
|
|
|
|
name: psp:privileged
|
|
|
|
{% endif %}
|