Skip to content

Commit f9997f6

Browse files
committed
custom-scheduler: deploy system:volume-scheduler crb
To address: ``` E0120 10:02:59.316882 1 reflector.go:138] k8s.io/client-go/informers/factory.go:134: Failed to watch *v1.StorageClass: unknown (get storageclasses.storage.k8s.io) ```
1 parent a33680e commit f9997f6

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

modules/nodes-custom-scheduler-deploying.adoc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,19 @@ roleRef:
4545
name: system:kube-scheduler
4646
apiGroup: rbac.authorization.k8s.io
4747
---
48+
apiVersion: rbac.authorization.k8s.io/v1
49+
kind: ClusterRoleBinding
50+
metadata:
51+
name: custom-scheduler-as-volume-scheduler
52+
subjects:
53+
- kind: ServiceAccount
54+
name: custom-scheduler
55+
namespace: kube-system <1>
56+
roleRef:
57+
kind: ClusterRole
58+
name: system:volume-scheduler
59+
apiGroup: rbac.authorization.k8s.io
60+
---
4861
apiVersion: apps/v1
4962
kind: Deployment
5063
metadata:

0 commit comments

Comments
 (0)