Skip to content

Commit f3b68c7

Browse files
swatisehgalAlexeyPerevalov
authored andcommitted
NodeTopologyResource ClusterRole and ClusterRoleBinding
- Required to access NodeResourceTopology CRD instances - Update minor formatting issues Signed-off-by: Swati Sehgal <[email protected]> Signed-off-by: Alexey Perevalov <[email protected]>
1 parent 0fbcd0a commit f3b68c7

File tree

1 file changed

+37
-1
lines changed

1 file changed

+37
-1
lines changed

keps/sig-node/20200619-provisioning-resources-with-numa-topology.md

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ participating-sigs:
1010
reviewers:
1111
- "@dchen1107"
1212
- "@derekwaynecarr"
13+
- "@klueska"
1314
approvers:
1415
- "@dchen1107"
1516
- "@derekwaynecarr"
1617
creation-date: 2020-06-19
17-
last-updated: 2020-06-19
18+
last-updated: 2020-08-12
1819
status: implementable
1920
see-also:
2021
- "/keps/sig-scheduling/20200612-deducted-topology-manager.md"
@@ -169,6 +170,41 @@ One CRD instance contains information of available resources of the appropriate
169170

170171
### Integration into Node Feature Discovery
171172

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.
172208

173209
### Graduation Criteria
174210

0 commit comments

Comments
 (0)