VPPConfig Custom Resource Definition
VPPConfig Custom Resource (CR) is used by the Fast Path Provider (FPP) component to configure VPP DaemonSet instances.
Configuration example
This is a sample VPPConfig CR that you can use to configure VPP DaemonSet instances:
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
- categories:
- [cennso]
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 FPP 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.RoutingTableSelector instead.toolConfigsobject[]Configuration file contents for VPPTools used by VPPDeploymentuplinkConfigobjectUplink configuration
statusobjectpreReadybooleanrequiredTrue when
beforeCommandsare executed TODO: use conditionsreadybooleanrequiredTrue when
afterCommandsare executed TODO: use conditions