CGWDeployment definition
The CGWDeployment Custom Resource (CR) is applied on the Management Cluster and deploys CGW (Connectivity Gateway) instances in the Core Cluster. A CGW is a deployment of a single FPP instance that serves as a network gateway for other FPP and CGW instances.
Configuration examples
This configuration example shows the CGWDeployment CR that you can use to deploy VPP-based webserver:
IPsec and UPF load balancing
Important
IPsec support and User Plane Function (UPF) load balancing are alpha features and are not suitable for production deployments.
FPP 3.2.0 adds two parameter groups:
- spec.ipsec.metricsEnabled - Exposes the metrics of the
ipsec-exporterVPPToolon port9536of the CGW Service. List theipsec-exporterVPPToolin spec.vppTools. See Set up IPsec. - spec.upflbConfig.spec - Configures the UPF load balancer (UPF-LB). A non-empty spec enables UPF-LB in the CGW and creates a
UPFLBConfigCR in the Core Cluster. The nats.url and nats.bucket parameters are required. See Set up UPF load balancing.
This example enables IPsec metrics:
The following example configures UPF load balancing:
Configuration parameters
These are all parameters that you can use to configure the CGWDeployment CR:
- CGWDeploymentKind
- fpp.cennso.comGroup
- v1alpha1Version
- apiVersion:
- fpp.cennso.com/v1alpha1
- kind:
- CGWDeployment
- plural:
- cgwdeployments
- categories:
- [claim]
apiVersionstringrequiredConstant"fpp.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"CGWDeployment"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.specobject oneOfrequiredconnectionSecretRefobjectrequiredReference to the secret containing the target cluster kubeconfigadditionalContainersobject[]List of additional containers belonging to the podadditionalInitContainersobject[]List of additional init containers belonging to the podadditionalVolumeMountsobject[]Additional volume mounts list. Each additional volume must specify a mount path inside the
fppcontainer.additionalVolumesobject[]Additional volumesaffinityobjectDefines affinity for the pods.x-kubernetes-preserve-unknown-fieldsafxdpNICMappingsobject[]AF_XDP NIC mappings for using NICs with AF_XDP driveraltMemifSocketPathstringAdditional memif socket pathannotationsobjectAnnotations to be present on each resourcebgpDaemonobjectBGP daemon configuration optionsbuffersPerNumaintegerNumber of buffers per NUMA nodecnfNamestringCNF name (cennso.net/cnf) label value used in the Instance ModecniobjectCNI configuration optionscommandstring[]Command override for the VPP container. Can be used for debugging purposes. It is recommended to disable the probes if the default startup script is not used. Example: ["/bin/bash", "-c", "sleep Infinity"].compositeDeletePolicystringAllowed values:"Background""Foreground"compositionRefobjectcompositionRevisionRefobjectcompositionRevisionSelectorobjectcompositionSelectorobjectcompositionUpdatePolicystringAllowed values:"Automatic""Manual"defaultDataSizeintegerVPP buffer size in bytesdirectNICMappingsobjectUses physical NICs directly without SRIOV Network Operator.x-kubernetes-preserve-unknown-fieldsdisableProbesbooleanDisables liveness and readiness probes for the VPP container.enableCoredumpbooleanEnables core dumping for the VPP process.externalNetworksobjectExternal networks grouped by interface prefix. Each key represents an interface prefix, and each value is a mapping from resource names to network specifications.x-kubernetes-preserve-unknown-fieldsfppNetworksobjectMap of the type 'name: specification' for FPPNetworks.x-kubernetes-preserve-unknown-fieldsheapSizestringVPP Main heap sizehostPIDbooleanEnables host PID namespace. Optional in instance mode.imageobjectImage-specific configuration overrides for the VPP Worker container imageimagePullPolicystringKubernetes Image Pull PolicyAllowed values:"IfNotPresent""Always""Never"imagePullSecretsobject[]ImagePullSecrets to be added to the workload service account. If not specified, it defaults to
cennso-pull-secret.ipsecobjectIPsec configuration optionslabelsobjectLabels to be present on each resourcelivenessProbeobjectLiveness probe configurationx-kubernetes-preserve-unknown-fieldslogLevelstringSets the logging verbosity.Allowed values:"trace""debug""info""error"multusNetworksstring[]List of Multus CNI Network Attachment Definition namesnetworksobjectNetworks for 'instance' mode, used to create NADs that don't refer to actual NICs. Used to attach FPP memifs to the instances.x-kubernetes-preserve-unknown-fieldsnodeSelectorobjectDefines Node Selector for the pods.operatorNamestringName of the VPP Operator managing this CGW instance.operatorRefobjectReference to the VPP Operator managing this CGW instance.podAnnotationsobjectAnnotations to be present on each podpodLabelsobjectLabels to be present on each podpodSecurityContextobjectSecurity context present on the podsx-kubernetes-preserve-unknown-fieldspublishConnectionDetailsToobjectpullSecretRefobjectReference to the secret that contains credentials for pulling Helm chart OCI artifacts. This secret must be located in the
cennso-systemnamespace on the Management Cluster.readinessProbeobjectReadiness probe configurationx-kubernetes-preserve-unknown-fieldsregistrystringDEPRECATED: Use
repositoryinstead. Registry and project URL containing all artifacts required to deploy CGW.releaseNamestringHelm release name for the CGW deploymentx-kubernetes-validationsreplicasintegerNumber of CGW instances to deployrepositorystringRegistry and project URL containing all artifacts required to deploy CGWresourceRefobjectresourcesobjectResources assigned to the VPP container, to both
requestsandlimits. Example: {cpu: '10', memory: '4Gi', hugepages-2Mi: '2Gi'}routingTablesobjectRouting table configurations. Passed directly to the Helm chart.x-kubernetes-preserve-unknown-fieldsroutingTableSelectorsobject[]Routing table selectorsstatSegSizestringVPP Stat segment sizetargetNamespacestringTarget namespace where CGW will be deployed on the Core ClusterterminationGracePeriodSecondsintegerDuration in seconds the pod needs to terminate gracefullytolerationsobject[]Tolerations for the podsupdateStrategyobjectUpdate strategy for the deploymentx-kubernetes-preserve-unknown-fieldsupflbConfigobjectConfigures the upflb dataplane for the CGW. A non-empty spec enables upflb.useHugepagesbooleanUses hugepages for VPP stats segment, buffers, and heap.valueOverridesobjectAdditional Helm chart values to override. This allows setting any chart value not explicitly exposed in the XRD. Values specified here will be merged with other configuration and take precedence.x-kubernetes-preserve-unknown-fieldsversionstringFPP version to deploy (without 'v' prefix)vppobjectVPP-specific configuration optionsvppABFsobjectA map where the key represents the name of the VPPABF custom resource, and the value defines the specification for the corresponding VPPABF CR.x-kubernetes-preserve-unknown-fieldsvppACLsobjectA map where the key represents the name of the VPPACL custom resource, and the value defines the specification for the corresponding VPPACL CR.x-kubernetes-preserve-unknown-fieldsvppConfigsobject[]List of VPPConfig objectsvppInterfacesobject[]List of the VPPInterface specifications.vppToolsobject[]VPPTools to deploy with the VPP podwriteConnectionSecretToRefobject
One of
statusobjectconditionsobject[]Conditions of the resourcex-kubernetes-list-map-keysx-kubernetes-list-typeconnectionDetailsobject