2019-02-07 15:29:26 +05:30
|
|
|
---
|
2018-07-18 16:48:43 +02:00
|
|
|
apiVersion: v1
|
|
|
|
kind: ServiceAccount
|
|
|
|
metadata:
|
2019-01-23 10:05:15 -05:00
|
|
|
name: rbd-csi-nodeplugin
|
2021-07-31 00:15:34 +07:00
|
|
|
# replace with non-default namespace name
|
|
|
|
namespace: default
|
2020-01-24 11:26:56 -05:00
|
|
|
---
|
|
|
|
kind: ClusterRole
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
metadata:
|
|
|
|
name: rbd-csi-nodeplugin
|
|
|
|
rules:
|
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["nodes"]
|
|
|
|
verbs: ["get"]
|
2020-12-16 09:52:36 +01:00
|
|
|
# allow to read Vault Token and connection options from the Tenants namespace
|
2020-12-10 11:27:11 +01:00
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["secrets"]
|
|
|
|
verbs: ["get"]
|
2020-12-16 09:52:36 +01:00
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["configmaps"]
|
|
|
|
verbs: ["get"]
|
2021-06-24 12:39:40 +02:00
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["serviceaccounts"]
|
|
|
|
verbs: ["get"]
|
2021-05-31 16:42:21 +05:30
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["persistentvolumes"]
|
|
|
|
verbs: ["get"]
|
|
|
|
- apiGroups: ["storage.k8s.io"]
|
|
|
|
resources: ["volumeattachments"]
|
|
|
|
verbs: ["list", "get"]
|
2022-06-08 19:41:36 +05:30
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["serviceaccounts/token"]
|
|
|
|
verbs: ["create"]
|
2020-01-24 11:26:56 -05:00
|
|
|
---
|
|
|
|
kind: ClusterRoleBinding
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
metadata:
|
|
|
|
name: rbd-csi-nodeplugin
|
|
|
|
subjects:
|
|
|
|
- kind: ServiceAccount
|
|
|
|
name: rbd-csi-nodeplugin
|
2021-07-31 00:15:34 +07:00
|
|
|
# replace with non-default namespace name
|
2020-01-24 11:26:56 -05:00
|
|
|
namespace: default
|
|
|
|
roleRef:
|
|
|
|
kind: ClusterRole
|
|
|
|
name: rbd-csi-nodeplugin
|
|
|
|
apiGroup: rbac.authorization.k8s.io
|