Operator to enable reporting of per-NUMA-zone compute resources
Operator to allow to expose the per-NUMA-zone compute resources, using the RTE - resource topology exporter. The operator also takes care of deploying the Node Resource Topology API on which the resource topology exporter depends to provide the data. The operator provides minimal support to deploy secondary schedulers.
The currently recommended way of deploying the operator in your cluster is using OLM. OLM greatly simplifies webhook management, which the operator requires. Assuming you can push container images to a container registry and you are in the root directory of this project, a deployment flow can look like:
VERSION REPO CONTAINER_ENGINEmake container-build container-pushmake bundle bundle-build bundle-pushoperator-sdk to deploy the container: operator-sdk run bundle ${REPO}/numaresources-operator-bundle:${VERSION}. Note the build procedure typically downloads a local copy of operator-sdk in bin/ which you can reuseNote that installing the operator using this method requires adding the openshift.io/cluster-monitoring: "true" label to the operator namespace to enable Prometheus cluster monitoring.
For further details, please refer to the operator-sdk documentation
The controller validates the scheduler image set in numaresourcesscheduler.spec.image against an embedded set of valid images by their digests. This set is fetched from the production registry. To pass the image validation, the following must be true:
registry.redhat.io and is of the same minor operator version or is the latest of the previous minor version.If a privileged user wants to extend the allow list to include other digests, that is possible by providing a comma-separated list of SHA digests as an environment variable SCHEDULER_IMAGE_DIGESTS under subscription.spec.config.env.
A privileged user can completely disable the image validation by setting SCHEDULER_IMAGE_VALIDATION to false under subscription.spec.config.env, any other value is ignored and keeps the validation ON.
On locally installed operators (no OLM), one can directly set the environment variables through the manager deployment using this command:
kubectl -n numaresources set env deployment/numaresources-controller-manager \
SCHEDULER_IMAGE_DIGESTS='sha256:abc...'
or completely disable the validation:
kubectl -n numaresources set env deployment/numaresources-controller-manager \
SCHEDULER_IMAGE_VALIDATION=false
IMPORTANT: the cluster admin should ensure that only other cluster admins (e.g. not namespace users) can set these variables.
The NUMA Resources operator is meant to have a limited lifetime, because all the operands it manages have a path towards integration in core k8s or towards replacement with other established components:
Once all the components are merged or replaced, we plan to extract the testsuite, and then to deprecate and dissolve the NUMA Resources Operator.
Please check the issues section for the known issues and limitations of the NUMA resources operator.
NRT objects only take into consideration exclusively allocated CPUs while accounting. In order for a pod to be allocated exclusive CPUs, it HAS to belong to Guaranteed QoS class (request=limit) and request has to be integral. Therefore, CPUs in the shared pool because of pods belonging to best effort/burstable QoS or guaranteed pod with non-integral CPU request would not be accounted for in the NRT objects. Please refer to CPU Manager docs here for more detail on this.
In addition to this, PodResource API is used to extract the resource information from Kubelet for resource accounting. CPUs exposed by the List endpoint of Podresource API correspond to exclusive CPUs allocated to a particular container. CPUs that belong to the shared pool are therefore not exposed by this API.
The NUMA resources operator comes with a growing e2e suite to validate components of the stack (operator proper, RTE) as well as the NUMA aware scheduling as a whole. Pre-built container images including the suites are available. There is no support for these e2e tests images, and they are recommended to be used only for development/CI purposes.
See README.tests.md for detailed instructions about how to run the suite.
See tests/e2e/serial/README.md for fine details about the suite and developer instructions.
PRs fixing issues may link either
No good first issue or help wanted issues are currently available.
No CONTRIBUTING document was found. Please check the README and open issues.