Multiple VPP Operators
Multi VPP Operator per one cluster
You can run multiple VPP Operators in the same cluster, which allows them to be updated independently. Each operator is identified by one of the following labels:
fpp-manager.cennso.com/created-for- name of the VPP Operator responsible for FPP instance deploymentfpp-manager.cennso.com/operated-by- name of the VPP Operator responsible for creating the interconnection between the FPP node switch and the FPP instance, for example by providing the memif master part for the VPP interface
Example of this functionality would be one VPP Operator running FPP node type (VPP switch as daemonset) and other Operators deploying FPPs in instance mode.
CRD and ServiceMonitor management
In environments where multiple VPP Operators target a single Core Cluster, the necessary FPP CRDs and ServiceMonitor resources are installed only once. The first VPP Operator deployed handles the installation, while subsequent operators automatically detect the existing resources and bypass this step.
Deploy VPP Operators
Each VPP Operator is deployed via a VPPOperator CR and must be assigned a unique spec.releaseName. While multiple operators can target a single Core Cluster, they operate on mutually exclusive sets of FPP objects. The required CRDs and ServiceMonitor are provisioned by the operator with spec.installCRDs and spec.installServiceMonitor set to true. All other operators shall have these flags set to false.
Reference operators from FPPDeployment
When creating an FPPDeployment with the fpp-af-xdp or fpp-dpdk compositions, use spec.operatorRef to reference the VPP Operator. The composition automatically resolves the operator's release name:
For UPGDeployment, configure the operator names directly:
- Set spec.operatorName to the UPG operator name
upg-op - Set spec.nodeOperatorName to the VPP Operator name
node-op.
In this example, the upg-op VPP Operator is responsible for provisioning all FPP objects defined within the UPG chart. Conversely, the node-op VPP Operator manages the connectivity, attaching the UPG's VPP interfaces to the FPP node switch.
Slice configuration
In some cases, you may want to have multiple VPP Operators controlling separate sets of FPP pods. You can do it using the slice mechanism, which looks at the designated label (fpp-manager.cennso.com/slice) that can be applied to FPP CRs or the namespaces in which they reside. The VPP Operator configured for a slice will only consider the resources belonging to their slice. All the objects that don't have the slice label are considered to have the default slice.
Caution
CAUTION: VPP Operators with different slices will not create FPPNetwork meshing between workload places on nodes running a different FPP slice.
To deploy VPP Operator with a non-default slice, use the following VPPOperator configuration:
VPP Operator with a non-default slice will reconcile only FPP objects labelled with fpp-manager.cennso.com/slice: testing.
To deploy the FPP node with slice testing, add label fpp-manager.cennso.com/slice: testing to the FPPDeployment configuration:
To deploy any Kubernetes workload (StatefulSet, Deployment or Daemonset) that requires the FPP interfaces, the pod should have an fpp-manager.cennso.com/slice: testing label. For example, you can do it in the StatefulSet manifest using spec.template.metadata.labels: