2019-02-07 09:59:26 +00:00
|
|
|
---
|
2018-07-18 14:48:43 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: ServiceAccount
|
|
|
|
metadata:
|
2019-01-23 15:05:15 +00:00
|
|
|
name: rbd-csi-attacher
|
2018-07-18 14:48:43 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: ClusterRole
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
metadata:
|
2019-01-23 15:05:15 +00:00
|
|
|
name: rbd-external-attacher-runner
|
2018-07-18 14:48:43 +00:00
|
|
|
rules:
|
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["persistentvolumes"]
|
|
|
|
verbs: ["get", "list", "watch", "update"]
|
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["nodes"]
|
|
|
|
verbs: ["get", "list", "watch"]
|
|
|
|
- apiGroups: ["storage.k8s.io"]
|
|
|
|
resources: ["volumeattachments"]
|
|
|
|
verbs: ["get", "list", "watch", "update"]
|
2019-02-27 14:02:07 +00:00
|
|
|
- apiGroups: ["csi.storage.k8s.io"]
|
|
|
|
resources: ["csinodeinfos"]
|
|
|
|
verbs: ["get", "list", "watch"]
|
2018-07-18 14:48:43 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: ClusterRoleBinding
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
metadata:
|
2019-01-23 15:05:15 +00:00
|
|
|
name: rbd-csi-attacher-role
|
2018-07-18 14:48:43 +00:00
|
|
|
subjects:
|
|
|
|
- kind: ServiceAccount
|
2019-01-23 15:05:15 +00:00
|
|
|
name: rbd-csi-attacher
|
2018-07-18 14:48:43 +00:00
|
|
|
namespace: default
|
|
|
|
roleRef:
|
|
|
|
kind: ClusterRole
|
2019-01-23 15:05:15 +00:00
|
|
|
name: rbd-external-attacher-runner
|
2018-07-18 14:48:43 +00:00
|
|
|
apiGroup: rbac.authorization.k8s.io
|