0ef3a7914c
* Added pod psp in Rancher Local Path Provisioner Added pod security policy (psp) in Rancher Local Path Provisioner. Signed-off-by: André R. de Miranda <andre@miranda.work> * Apply psp for Rancher Local Path Provisioner only when local_path_provisioner_namespace is not kube-system and also reorganized the templates
14 lines
408 B
Django/Jinja
14 lines
408 B
Django/Jinja
---
|
|
apiVersion: rbac.authorization.k8s.io/v1beta1
|
|
kind: ClusterRoleBinding
|
|
metadata:
|
|
name: local-path-provisioner-bind
|
|
namespace: {{ local_path_provisioner_namespace }}
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: ClusterRole
|
|
name: local-path-provisioner-role
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: local-path-provisioner-service-account
|
|
namespace: {{ local_path_provisioner_namespace }}
|