Work in Progress - 9/9/2020
High Level Overview
- Addition of NFD Ensure NFD (Node feature discovery - K8S CNCF project) deploy to Multicloud and K8s deploy+ K8s Plugin is working and labeling Kubernetes nodes
- Add registrationHandler to K8s Plugin and expand K8s Plugin API to work with ESR VIM registration of K8s Clusters
- Use POST/DELETE/GET of http://{{MSB_IP}}:{{MSB_PORT}}/api/multicloud-k8s/v1/{{cloud-owner}}/{{cloud-region-id}}/registry
- Ensure registrationHandler can get K8s feature labels - (labels discovered and placed by NFD representing hardware features)
- Ensure registrationHandler can populate A&AI cloud-region/tenant/compute flavors based on cluster under registration
- Register K8s cluster internally with the K8s Plugin
- Add Node App in K8s Plugin to retrieve node labels from a clusterExtend flavor reporting code from Multicloud to AAI to include K8s feature labels - by discovery of hardware features, creation of profiles and populating in A&AI compute flavors.
- Identify and Address any gaps in policy and OOF to do match making VNFs/Application to right compute flavors of CNFs/VNFs using K8s Plugin
Kubernetes clusters in using ONAP Multicloud K8s Plugin Project for R4/R5 do not discover or advertise report hardware features to AA&I. Consequently during the CNF/VNF life cycle CNFs/VNFs that require or recommend specific hardware during instantiation cannot dynamically reach the correct cloud that provides needed hardware capabilities.
This epic (
Jira | ||||||
---|---|---|---|---|---|---|
|
Discovery of HPA features will be done by discovering HPA features using the node feature discovery [NFD] addon (https://github.com/kubernetes-sigs/node-feature-discovery) for kubernetes. NFD will be deployed on each node and will discover and label hardware enabled hardware enabled kubernetes nodes with supported features (https://github.com/kubernetes-sigs/node-feature-discovery#feature-labels).
Reporting of HPA features will be done in Multicloud K8s Plugin registrationHander by discovering node labels on each node in a cluster and pushing munged cloud-region/tenant/flavors info based on that cluster to A&AI.
CNF and VNF helm charts will be updated with nodeSelector requirements & recommendations in line with node labels created by NFD during discovery.
Code Block | ||
---|---|---|
| ||
feature.node.kubernetes.io/cpuid-AVX = true
feature.node.kubernetes.io/cpuid-AVX512F = true
feature.node.kubernetes.io/cpuid-SHA = true |
Multicloud will discovery those labels and push that info to A&AI as an abstracted compute flavor. Policy and OOF can then discover capabilities of K8s nodes and use that information to home particular CNF workloads to nodes which can accelerate their function. Further Multicloud will use labels when instantiating CNF workload to ensure kubernetes places the workloads on the correct node.
...