For AI agents: this documentation is indexed for you in llms.txt, and all of it in /llms.txt. Every page is also available as markdown: append .md to its address.

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:

yaml

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-exporter VPPTool on port 9536 of the CGW Service. List the ipsec-exporter VPPTool in 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 UPFLBConfig CR in the Core Cluster. The nats.url and nats.bucket parameters are required. See Set up UPF load balancing.

This example enables IPsec metrics:

yaml

The following example configures UPF load balancing:

yaml

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]
Schema
  • 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.
  • metadataobjectrequired
    Standard object metadata. More information: ObjectMetaOpens in a new tab.
  • specobject oneOfrequired
    • connectionSecretRefobjectrequired
      Reference to the secret containing the target cluster kubeconfig
    • additionalContainersobject[]
      List of additional containers belonging to the pod
    • additionalInitContainersobject[]
      List of additional init containers belonging to the pod
    • additionalVolumeMountsobject[]

      Additional volume mounts list. Each additional volume must specify a mount path inside the fpp container.

    • additionalVolumesobject[]
      Additional volumes
    • affinityobject
      Defines affinity for the pods.
      x-kubernetes-preserve-unknown-fields
    • afxdpNICMappingsobject[]
      AF_XDP NIC mappings for using NICs with AF_XDP driver
    • altMemifSocketPathstring
      Additional memif socket path
    • annotationsobject
      Annotations to be present on each resource
    • bgpDaemonobject
      BGP daemon configuration options
    • buffersPerNumainteger
      Number of buffers per NUMA node
    • cnfNamestring
      CNF name (cennso.net/cnf) label value used in the Instance Mode
    • cniobject
      CNI configuration options
    • commandstring[]
      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"].
    • compositeDeletePolicystring
      Allowed values:"Background""Foreground"
    • compositionRefobject
    • compositionRevisionRefobject
    • compositionRevisionSelectorobject
    • compositionSelectorobject
    • compositionUpdatePolicystring
      Allowed values:"Automatic""Manual"
    • defaultDataSizeinteger
      VPP buffer size in bytes
    • directNICMappingsobject
      Uses physical NICs directly without SRIOV Network Operator.
      x-kubernetes-preserve-unknown-fields
    • disableProbesboolean
      Disables liveness and readiness probes for the VPP container.
    • enableCoredumpboolean
      Enables core dumping for the VPP process.
    • externalNetworksobject
      External 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-fields
    • fppNetworksobject
      Map of the type 'name: specification' for FPPNetworks.
      x-kubernetes-preserve-unknown-fields
    • heapSizestring
      VPP Main heap size
    • hostPIDboolean
      Enables host PID namespace. Optional in instance mode.
    • imageobject
      Image-specific configuration overrides for the VPP Worker container image
    • imagePullPolicystring
      Kubernetes Image Pull Policy
      Allowed values:"IfNotPresent""Always""Never"
    • imagePullSecretsobject[]

      ImagePullSecrets to be added to the workload service account. If not specified, it defaults to cennso-pull-secret.

    • ipsecobject
      IPsec configuration options
    • labelsobject
      Labels to be present on each resource
    • livenessProbeobject
      Liveness probe configuration
      x-kubernetes-preserve-unknown-fields
    • logLevelstring
      Sets the logging verbosity.
      Allowed values:"trace""debug""info""error"
    • multusNetworksstring[]
      List of Multus CNI Network Attachment Definition names
    • networksobject
      Networks 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-fields
    • nodeSelectorobject
      Defines Node Selector for the pods.
    • operatorNamestring
      Name of the VPP Operator managing this CGW instance.
    • operatorRefobject
      Reference to the VPP Operator managing this CGW instance.
    • podAnnotationsobject
      Annotations to be present on each pod
    • podLabelsobject
      Labels to be present on each pod
    • podSecurityContextobject
      Security context present on the pods
      x-kubernetes-preserve-unknown-fields
    • publishConnectionDetailsToobject
    • pullSecretRefobject

      Reference to the secret that contains credentials for pulling Helm chart OCI artifacts. This secret must be located in the cennso-system namespace on the Management Cluster.

    • readinessProbeobject
      Readiness probe configuration
      x-kubernetes-preserve-unknown-fields
    • registrystring

      DEPRECATED: Use repository instead. Registry and project URL containing all artifacts required to deploy CGW.

    • releaseNamestring
      Helm release name for the CGW deployment
      x-kubernetes-validations
    • replicasinteger
      Number of CGW instances to deploy
    • repositorystring
      Registry and project URL containing all artifacts required to deploy CGW
    • resourceRefobject
    • resourcesobject

      Resources assigned to the VPP container, to both requests and limits. Example: {cpu: '10', memory: '4Gi', hugepages-2Mi: '2Gi'}

    • routingTablesobject
      Routing table configurations. Passed directly to the Helm chart.
      x-kubernetes-preserve-unknown-fields
    • routingTableSelectorsobject[]
      Routing table selectors
    • statSegSizestring
      VPP Stat segment size
    • targetNamespacestring
      Target namespace where CGW will be deployed on the Core Cluster
    • terminationGracePeriodSecondsinteger
      Duration in seconds the pod needs to terminate gracefully
    • tolerationsobject[]
      Tolerations for the pods
    • updateStrategyobject
      Update strategy for the deployment
      x-kubernetes-preserve-unknown-fields
    • upflbConfigobject
      Configures the upflb dataplane for the CGW. A non-empty spec enables upflb.
    • useHugepagesboolean
      Uses hugepages for VPP stats segment, buffers, and heap.
    • valueOverridesobject
      Additional 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-fields
    • versionstring
      FPP version to deploy (without 'v' prefix)
    • vppobject
      VPP-specific configuration options
    • vppABFsobject
      A 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-fields
    • vppACLsobject
      A 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-fields
    • vppConfigsobject[]
      List of VPPConfig objects
    • vppInterfacesobject[]
      List of the VPPInterface specifications.
    • vppToolsobject[]
      VPPTools to deploy with the VPP pod
    • writeConnectionSecretToRefobject

    One of

  • statusobject
    • conditionsobject[]
      Conditions of the resource
      x-kubernetes-list-map-keysx-kubernetes-list-type
    • connectionDetailsobject