mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-14 11:57:51 +00:00
b4c92e4eed
- This patch allows to expose Resource Hardware Topology information through CRDs in Node Feature Discovery. - In order to do this we introduce another software component called nfd-topology-updater in addition to the already existing software components nfd-master and nfd-worker. - nfd-master was enhanced to communicate with nfd-topology-updater over gRPC followed by creation of CRs corresponding to the nodes in the cluster exposing resource hardware topology information of that node. - Pin kubernetes dependency to one that include pod resource implementation - This code is responsible for obtaining hardware information from the system as well as pod resource information from the Pod Resource API in order to determine the allocatable resource information for each NUMA zone. This information along with Costs for NUMA zones (obtained by reading NUMA distances) is gathered by nfd-topology-updater running on all the nodes of the cluster and propagate NUMA zone costs to master in order to populate that information in the CRs corresponding to the nodes. - We use GHW facilities for obtaining system information like CPUs, topology, NUMA distances etc. - This also includes updates made to Makefile and Dockerfile and Manifests for deploying nfd-topology-updater. - This patch includes unit tests - As part of the Topology Aware Scheduling work, this patch captures the configured Topology manager scope in addition to the Topology manager policy. Based on the value of both attribues a single string will be populated to the CRD. The string value will be on of the following {SingleNUMANodeContainerLevel, SingleNUMANodePodLevel, BestEffort, Restricted, None} Co-Authored-by: Artyom Lukianov <alukiano@redhat.com> Co-Authored-by: Francesco Romani <fromani@redhat.com> Co-Authored-by: Talor Itzhak <titzhak@redhat.com> Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
60 lines
2.5 KiB
Modula-2
60 lines
2.5 KiB
Modula-2
module sigs.k8s.io/node-feature-discovery
|
|
|
|
go 1.16
|
|
|
|
require (
|
|
github.com/fsnotify/fsnotify v1.4.9
|
|
github.com/ghodss/yaml v1.0.0
|
|
github.com/golang/protobuf v1.5.2
|
|
github.com/google/go-cmp v0.5.5
|
|
github.com/jaypipes/ghw v0.8.1-0.20210827132705-c7224150a17e
|
|
github.com/k8stopologyawareschedwg/noderesourcetopology-api v0.0.9
|
|
github.com/klauspost/cpuid/v2 v2.0.9
|
|
github.com/onsi/ginkgo v1.14.0
|
|
github.com/onsi/gomega v1.10.1
|
|
github.com/smartystreets/assertions v1.2.0
|
|
github.com/smartystreets/goconvey v1.6.4
|
|
github.com/stretchr/testify v1.7.0
|
|
github.com/vektra/errors v0.0.0-20140903201135-c64d83aba85a
|
|
golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d
|
|
google.golang.org/grpc v1.38.0
|
|
google.golang.org/protobuf v1.27.1
|
|
k8s.io/api v0.22.0
|
|
k8s.io/apimachinery v0.22.0
|
|
k8s.io/client-go v0.22.0
|
|
k8s.io/klog/v2 v2.9.0
|
|
k8s.io/kubelet v0.0.0
|
|
k8s.io/kubernetes v1.22.0
|
|
sigs.k8s.io/yaml v1.2.0
|
|
)
|
|
|
|
// The k8s "sub-"packages do not have 'semver' compatible versions. Thus, we
|
|
// need to override with commits (corresponding their kubernetes-* tags)
|
|
replace (
|
|
github.com/gogo/protobuf => github.com/gogo/protobuf v1.3.2
|
|
k8s.io/api => k8s.io/api v0.22.0
|
|
k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.22.0
|
|
k8s.io/apimachinery => k8s.io/apimachinery v0.22.0
|
|
k8s.io/apiserver => k8s.io/apiserver v0.22.0
|
|
k8s.io/cli-runtime => k8s.io/cli-runtime v0.22.0
|
|
k8s.io/client-go => k8s.io/client-go v0.22.0
|
|
k8s.io/cloud-provider => k8s.io/cloud-provider v0.22.0
|
|
k8s.io/cluster-bootstrap => k8s.io/cluster-bootstrap v0.22.0
|
|
k8s.io/code-generator => k8s.io/code-generator v0.22.0
|
|
k8s.io/component-base => k8s.io/component-base v0.22.0
|
|
k8s.io/component-helpers => k8s.io/component-helpers v0.22.0
|
|
k8s.io/controller-manager => k8s.io/controller-manager v0.22.0
|
|
k8s.io/cri-api => k8s.io/cri-api v0.22.0
|
|
k8s.io/csi-translation-lib => k8s.io/csi-translation-lib v0.22.0
|
|
k8s.io/kube-aggregator => k8s.io/kube-aggregator v0.22.0
|
|
k8s.io/kube-controller-manager => k8s.io/kube-controller-manager v0.22.0
|
|
k8s.io/kube-proxy => k8s.io/kube-proxy v0.22.0
|
|
k8s.io/kube-scheduler => k8s.io/kube-scheduler v0.22.0
|
|
k8s.io/kubectl => k8s.io/kubectl v0.22.0
|
|
k8s.io/kubelet => k8s.io/kubelet v0.22.0
|
|
k8s.io/legacy-cloud-providers => k8s.io/legacy-cloud-providers v0.22.0
|
|
k8s.io/metrics => k8s.io/metrics v0.22.0
|
|
k8s.io/mount-utils => k8s.io/mount-utils v0.22.0
|
|
k8s.io/pod-security-admission => k8s.io/pod-security-admission v0.22.0
|
|
k8s.io/sample-apiserver => k8s.io/sample-apiserver v0.22.0
|
|
)
|