c12s-kubespray/roles/kubernetes-apps/local_volume_provisioner/templates/clusterrolebinding.yml.j2
Wong Hoi Sing Edison bc2e26d7ef update apiVersion
2018-02-01 14:16:32 +08:00

28 lines
729 B
Django/Jinja

---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: local-storage-provisioner-pv-binding
namespace: {{ system_namespace }}
subjects:
- kind: ServiceAccount
name: local-storage-admin
namespace: {{ system_namespace }}
roleRef:
kind: ClusterRole
name: system:persistent-volume-provisioner
apiGroup: rbac.authorization.k8s.io
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: local-storage-provisioner-node-binding
namespace: {{ system_namespace }}
subjects:
- kind: ServiceAccount
name: local-storage-admin
namespace: {{ system_namespace }}
roleRef:
kind: ClusterRole
name: system:node
apiGroup: rbac.authorization.k8s.io