VPPConfig definition
The VPPConfig Custom Resource (CR) is applied on the Core Cluster and configures VPP instances. It can target VPP switch daemon pods (node-mode FPP pods, via the fpp-manager.cennso.com/plumbing-node label) or instance-mode FPP pods (via the fpp-manager.cennso.com/plumbing-instance label). VPPConfig lists VPP CLI commands that must be run by the VPP Operator and can reference interfaces configured through VPPInterface CRs.
When multiple VPPConfig objects match the same VPP instance, they are merged based on their priority values. The resulting configuration is the effective config. When it changes, the VPP instance must be restarted.
Configuration examples
Note
VPPConfig is an intermediate resource managed by the FPPDeployment and CGWDeployment Crossplane compositions. It must not be created manually.
Configuration parameters
These are all parameters that you can use to configure the VPPConfig CR:
- VPPConfigKind
- fpp-manager.cennso.comGroup
- v1alpha1Version
- apiVersion:
- fpp-manager.cennso.com/v1alpha1
- kind:
- VPPConfig
- listKind:
- VPPConfigList
- plural:
- vppconfigs
- singular:
- vppconfig
apiVersionstringrequiredConstant"fpp-manager.cennso.com/v1alpha1"APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More information: Kubernetes API conventionsOpens in a new tab.kindstringrequiredConstant"VPPConfig"Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More information: Kubernetes API conventionsOpens in a new tab.metadataobjectrequiredStandard object metadata. More information: ObjectMetaOpens in a new tab.specobjectrequiredafterCommandsstring[]VPP commands to execute after all
interfacesare ready. Each command is a Go template, where {{ Interfaces.xyz }},xyzbeing the IfName value from the VPPInterface object, are replaced by the name of the VPP corresponding VPP interface. When multiple VPPConfigs are merged,afterCommandsare combined in the reverse order by thepriorityvalue, so commands from the configs with higher priority go first.assumedInterfacesstring[]VPP interfaces assumed to exist after
beforeCommandsare executed and are used to create uplink and external network interfaces. When anyassumedInterfacesare specified, DPDK interfaces (that is, interfaces specified via MAPPING_* / PCIDEVICE_* env vars) aren't automatically used for uplinks or extnet unless they're explicitly mentioned inassumedInterfaces.beforeCommandsstring[]VPP commands to execute before bringing up any interfaces for this VPP instance. When multiple VPPConfigs are merged,
beforeCommandsare combined in the reverse order by thepriorityvalue, so commands from the configs with higher priority go first.externalNetworkConfigobject[]External network configurationinterfacesstring[]Interfaces to bring up before executing
afterCommands.manualConfigobjectConfiguration included in AfterCommands that should not be managed by VPP Operator.priorityintegerPriority for merging multiple applicable configurations. VPPConfigs with higher
priorityvalues take precedence.routingTablesinteger[]Ensures that RoutingTables are created before executing AfterCommands.routingTableSelectorsobject[]Routing table selectors. If none is specified, the default targeting mechanism is used for RoutingTable objects. Lists of selectors specified across multiple VPPConfig objects applicable to the current instance are merged together. DEPRECATED. Use VPPDeployment.Spec.ObjectSelectors.RoutingTableSelector instead.toolConfigsobject[]Configuration file contents for VPPTools used by VPPDeploymentuplinkConfigobjectUplink configuration
statusobjectpreReadybooleanrequiredTrue when
beforeCommandsare executedreadybooleanrequiredTrue when
afterCommandsare executed