2017-11-01 22:25:35 +08:00
|
|
|
---
|
|
|
|
kind: ClusterRoleBinding
|
2018-02-01 14:16:32 +08:00
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
2017-11-01 22:25:35 +08:00
|
|
|
metadata:
|
|
|
|
name: local-storage-provisioner-pv-binding
|
2017-11-02 18:16:08 +08:00
|
|
|
namespace: {{ system_namespace }}
|
2017-11-01 22:25:35 +08:00
|
|
|
subjects:
|
2018-02-01 14:14:18 +08:00
|
|
|
- kind: ServiceAccount
|
|
|
|
name: local-storage-admin
|
|
|
|
namespace: {{ system_namespace }}
|
2017-11-01 22:25:35 +08:00
|
|
|
roleRef:
|
|
|
|
kind: ClusterRole
|
|
|
|
name: system:persistent-volume-provisioner
|
|
|
|
apiGroup: rbac.authorization.k8s.io
|
|
|
|
---
|
|
|
|
kind: ClusterRoleBinding
|
2018-02-01 14:16:32 +08:00
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
2017-11-01 22:25:35 +08:00
|
|
|
metadata:
|
|
|
|
name: local-storage-provisioner-node-binding
|
2017-11-02 18:16:08 +08:00
|
|
|
namespace: {{ system_namespace }}
|
2017-11-01 22:25:35 +08:00
|
|
|
subjects:
|
2018-02-01 14:14:18 +08:00
|
|
|
- kind: ServiceAccount
|
|
|
|
name: local-storage-admin
|
|
|
|
namespace: {{ system_namespace }}
|
2017-11-01 22:25:35 +08:00
|
|
|
roleRef:
|
|
|
|
kind: ClusterRole
|
|
|
|
name: system:node
|
|
|
|
apiGroup: rbac.authorization.k8s.io
|