2019-07-16 12:27:26 +00:00
|
|
|
---
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: ClusterRole
|
|
|
|
metadata:
|
|
|
|
name: local-volume-provisioner-node-clusterrole
|
|
|
|
namespace: {{ local_volume_provisioner_namespace }}
|
|
|
|
rules:
|
2022-11-07 23:28:17 +00:00
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["persistentvolumes"]
|
|
|
|
verbs: ["get", "list", "watch", "create", "delete"]
|
|
|
|
- apiGroups: ["storage.k8s.io"]
|
|
|
|
resources: ["storageclasses"]
|
|
|
|
verbs: ["get", "list", "watch"]
|
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["events"]
|
|
|
|
verbs: ["watch"]
|
|
|
|
- apiGroups: ["", "events.k8s.io"]
|
|
|
|
resources: ["events"]
|
|
|
|
verbs: ["create", "update", "patch"]
|
2019-07-16 12:27:26 +00:00
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["nodes"]
|
|
|
|
verbs: ["get"]
|