Skip to content

Commit

Permalink
Fixing formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
Signed-off-by: Alexey Perevalov <alexey.perevalov@huawei.com>
  • Loading branch information
swatisehgal authored and AlexeyPerevalov committed Aug 13, 2020
1 parent e49720d commit a831f2f
Showing 1 changed file with 39 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,16 @@ participating-sigs:
reviewers:
- "@dchen1107"
- "@derekwaynecarr"
- "@klueska"
approvers:
- "@dchen1107"
- "@derekwaynecarr"
creation-date: 2020-06-19
last-updated: 2020-06-19
last-updated: 2020-08-12
status: implementable
see-also:
- "/keps/sig-scheduling/20200612-deducted-topology-manager.md"

---

# Exposure Node Resources With NUMA Topology Information

Expand All @@ -32,6 +33,7 @@ see-also:
- [Proposal](#proposal)
- [Design Details](#design-details)
- [Design based on CRI](#design-based-on-cri)
- [Drawbacks](#drawbacks)
- [Design based on podresources interface of the kubelet](#design-based-on-podresources-interface-of-the-kubelet)
- [API](#api)
- [Integration into Node Feature Discovery](#integration-into-node-feature-discovery)
Expand Down Expand Up @@ -168,6 +170,41 @@ One CRD instance contains information of available resources of the appropriate

### Integration into Node Feature Discovery

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:

``` yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: noderesourcetopology-handler
rules:
- apiGroups: ["topology.node.k8s.io"]
resources: ["noderesourcetopologies"]
verbs: ["*"]
- apiGroups: ["rbac.authorization.k8s.io"]
resources: ["*"]
verbs: ["*"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: handle-noderesourcetopology
subjects:
- kind: ServiceAccount
name: noderesourcetopology-account
namespace: default
roleRef:
kind: ClusterRole
name: noderesourcetopology-handler
apiGroup: rbac.authorization.k8s.io
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: noderesourcetopology-account
```
`serviceAccountName: noderesourcetopology-account` would have to be added to the manifest file of the Daemon.

### Graduation Criteria

Expand Down

0 comments on commit a831f2f

Please sign in to comment.