apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: "longhorn-admin" labels: rbac.authorization.k8s.io/aggregate-to-admin: "true" rules: - apiGroups: [ "longhorn.io" ] resources: [ "volumes", "volumes/status", "engines", "engines/status", "replicas", "replicas/status", "settings", "engineimages", "engineimages/status", "nodes", "nodes/status", "instancemanagers", "instancemanagers/status" ] verbs: [ "*" ] --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: "longhorn-edit" labels: rbac.authorization.k8s.io/aggregate-to-edit: "true" rules: - apiGroups: [ "longhorn.io" ] resources: [ "volumes", "volumes/status", "engines", "engines/status", "replicas", "replicas/status", "settings", "engineimages", "engineimages/status", "nodes", "nodes/status", "instancemanagers", "instancemanagers/status" ] verbs: [ "*" ] --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: "longhorn-view" labels: rbac.authorization.k8s.io/aggregate-to-view: "true" rules: - apiGroups: [ "longhorn.io" ] resources: [ "volumes", "volumes/status", "engines", "engines/status", "replicas", "replicas/status", "settings", "engineimages", "engineimages/status", "nodes", "nodes/status", "instancemanagers", "instancemanagers/status" ] verbs: [ "get", "list", "watch" ]