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