You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Exposure Node Resources With NUMA Topology Information
24
25
@@ -32,6 +33,7 @@ see-also:
32
33
-[Proposal](#proposal)
33
34
-[Design Details](#design-details)
34
35
-[Design based on CRI](#design-based-on-cri)
36
+
-[Drawbacks](#drawbacks)
35
37
-[Design based on podresources interface of the kubelet](#design-based-on-podresources-interface-of-the-kubelet)
36
38
-[API](#api)
37
39
-[Integration into Node Feature Discovery](#integration-into-node-feature-discovery)
@@ -168,6 +170,41 @@ One CRD instance contains information of available resources of the appropriate
168
170
169
171
### Integration into Node Feature Discovery
170
172
173
+
In order to allow the NFD-master Daemon to create, get, update, delete NodeResourceTopology CRD instances, ClusterRole and ClusterRoleBinding would have to be configured as below:
174
+
175
+
```yaml
176
+
apiVersion: rbac.authorization.k8s.io/v1
177
+
kind: ClusterRole
178
+
metadata:
179
+
name: noderesourcetopology-handler
180
+
rules:
181
+
- apiGroups: ["topology.node.k8s.io"]
182
+
resources: ["noderesourcetopologies"]
183
+
verbs: ["*"]
184
+
- apiGroups: ["rbac.authorization.k8s.io"]
185
+
resources: ["*"]
186
+
verbs: ["*"]
187
+
---
188
+
apiVersion: rbac.authorization.k8s.io/v1
189
+
kind: ClusterRoleBinding
190
+
metadata:
191
+
name: handle-noderesourcetopology
192
+
subjects:
193
+
- kind: ServiceAccount
194
+
name: noderesourcetopology-account
195
+
namespace: default
196
+
roleRef:
197
+
kind: ClusterRole
198
+
name: noderesourcetopology-handler
199
+
apiGroup: rbac.authorization.k8s.io
200
+
---
201
+
apiVersion: v1
202
+
kind: ServiceAccount
203
+
metadata:
204
+
name: noderesourcetopology-account
205
+
```
206
+
207
+
`serviceAccountName: noderesourcetopology-account` would have to be added to the manifest file of the Daemon.
0 commit comments