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: cephfs-csi-provisioner
|
2022-08-19 13:25:13 +00:00
|
|
|
namespace: default
|
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: cephfs-external-provisioner-runner
|
2018-07-18 14:48:43 +00:00
|
|
|
rules:
|
2022-08-19 13:25:13 +00:00
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["nodes"]
|
|
|
|
verbs: ["get", "list", "watch"]
|
2018-07-18 14:48:43 +00:00
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["secrets"]
|
2022-08-19 13:25:13 +00:00
|
|
|
verbs: ["get", "list", "watch"]
|
2019-03-04 03:02:01 +00:00
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["events"]
|
|
|
|
verbs: ["list", "watch", "create", "update", "patch"]
|
2018-07-18 14:48:43 +00:00
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["persistentvolumes"]
|
2022-07-05 09:11:59 +00:00
|
|
|
verbs: ["get", "list", "watch", "create", "update", "delete", "patch"]
|
2018-07-18 14:48:43 +00:00
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["persistentvolumeclaims"]
|
|
|
|
verbs: ["get", "list", "watch", "update"]
|
2022-08-19 13:25:13 +00:00
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["persistentvolumeclaims/status"]
|
|
|
|
verbs: ["update", "patch"]
|
2018-07-18 14:48:43 +00:00
|
|
|
- apiGroups: ["storage.k8s.io"]
|
|
|
|
resources: ["storageclasses"]
|
|
|
|
verbs: ["get", "list", "watch"]
|
2020-08-03 09:47:00 +00:00
|
|
|
- apiGroups: ["snapshot.storage.k8s.io"]
|
|
|
|
resources: ["volumesnapshots"]
|
|
|
|
verbs: ["get", "list"]
|
2022-01-17 12:58:38 +00:00
|
|
|
- apiGroups: ["snapshot.storage.k8s.io"]
|
|
|
|
resources: ["volumesnapshots/status"]
|
|
|
|
verbs: ["get", "list", "patch"]
|
2020-08-03 09:47:00 +00:00
|
|
|
- apiGroups: ["snapshot.storage.k8s.io"]
|
|
|
|
resources: ["volumesnapshotcontents"]
|
2022-05-23 10:33:25 +00:00
|
|
|
verbs: ["get", "list", "watch", "update", "patch"]
|
2020-08-03 09:47:00 +00:00
|
|
|
- apiGroups: ["snapshot.storage.k8s.io"]
|
|
|
|
resources: ["volumesnapshotclasses"]
|
|
|
|
verbs: ["get", "list", "watch"]
|
2020-01-24 16:26:56 +00:00
|
|
|
- apiGroups: ["storage.k8s.io"]
|
|
|
|
resources: ["csinodes"]
|
|
|
|
verbs: ["get", "list", "watch"]
|
2020-08-03 09:47:00 +00:00
|
|
|
- apiGroups: ["snapshot.storage.k8s.io"]
|
|
|
|
resources: ["volumesnapshotcontents/status"]
|
2022-01-17 12:58:38 +00:00
|
|
|
verbs: ["update", "patch"]
|
2022-08-19 13:25:13 +00:00
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["configmaps"]
|
|
|
|
verbs: ["get"]
|
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["serviceaccounts"]
|
|
|
|
verbs: ["get"]
|
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["serviceaccounts/token"]
|
|
|
|
verbs: ["create"]
|
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: cephfs-csi-provisioner-role
|
2018-07-18 14:48:43 +00:00
|
|
|
subjects:
|
|
|
|
- kind: ServiceAccount
|
2019-01-23 15:05:15 +00:00
|
|
|
name: cephfs-csi-provisioner
|
2018-07-18 14:48:43 +00:00
|
|
|
namespace: default
|
|
|
|
roleRef:
|
|
|
|
kind: ClusterRole
|
2019-01-23 15:05:15 +00:00
|
|
|
name: cephfs-external-provisioner-runner
|
2018-07-18 14:48:43 +00:00
|
|
|
apiGroup: rbac.authorization.k8s.io
|
2019-02-27 11:08:20 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: Role
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
metadata:
|
|
|
|
# replace with non-default namespace name
|
|
|
|
namespace: default
|
|
|
|
name: cephfs-external-provisioner-cfg
|
|
|
|
rules:
|
2022-08-19 13:25:13 +00:00
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["configmaps"]
|
|
|
|
verbs: ["get", "list", "watch", "create", "update", "delete"]
|
2019-07-25 06:49:44 +00:00
|
|
|
- apiGroups: ["coordination.k8s.io"]
|
|
|
|
resources: ["leases"]
|
|
|
|
verbs: ["get", "watch", "list", "delete", "update", "create"]
|
2019-02-27 11:08:20 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: RoleBinding
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
metadata:
|
|
|
|
name: cephfs-csi-provisioner-role-cfg
|
|
|
|
# replace with non-default namespace name
|
|
|
|
namespace: default
|
|
|
|
subjects:
|
|
|
|
- kind: ServiceAccount
|
|
|
|
name: cephfs-csi-provisioner
|
|
|
|
# replace with non-default namespace name
|
|
|
|
namespace: default
|
|
|
|
roleRef:
|
|
|
|
kind: Role
|
|
|
|
name: cephfs-external-provisioner-cfg
|
|
|
|
apiGroup: rbac.authorization.k8s.io
|