Network addons
Network addons provide the pod-to-pod network for a Kubernetes cluster and the ingress path for traffic that enters the cluster. The CNI (Container Network Interface) choices are Antrea, Calico, Flannel, and Weave. Contour adds ingress through an Envoy proxy and depends on one of those CNI choices. This page extends the addon platform overview and complements the storage addons and operational service addons pages.
Network addon model
CNI providers
The CNI provider gives pods network addresses and connects pod traffic across cluster nodes. The catalog treats Antrea, Calico, Flannel, and Weave as alternatives that fulfill the same CNI Plugin role and require a container runtime.
The choice is a cluster-wide decision. It affects the pod address range, node traffic needs, host requirements, and the safe path for later changes. Other addons use the capability rather than naming one provider, so a working CNI must exist before dependent services can operate.
References: addons/…/categories.json• L1-6 addons/…/categories.json• L1-6 addons/…/categories.json• L1-6 addons/…/categories.json• L1-6
Ingress provider
Ingress exposes applications through HTTP and HTTPS routes. Contour fulfills the Ingress role and requires both a CNI provider and a container runtime, which places it above the pod network in the addon relationship.
Contour combines a controller with an Envoy proxy fleet. The controller watches Kubernetes Ingress, HTTPProxy, and Gateway API resources, then configures the proxies to route client traffic to application services. The 1.33.7 package includes certificate setup for the controller-to-proxy link and uses versioned Contour and Envoy images recorded in its package manifest.
References: addons/…/categories.json• L1-6 addons/…/Manifest• L1-2 addons/…/contour.yaml• L5733-5771 addons/…/contour.yaml• L8922-9008 addons/…/contour.yaml• L9186-9332
CNI alternatives
Antrea
Antrea provides the pod network and adds a broad network policy model. Its cluster resources include an Antrea controller, node agents, and custom resources for agent state and network policy.
Antrea can encrypt traffic between nodes. The selected encryption path needs host support for its required kernel feature, so an encrypted cluster has a stronger host prerequisite than a plain Antrea network. The addon also installs the antctl command when the asset is available.
Antrea does not support migration from an existing Weave network. Flannel also refuses a direct migration from Antrea, so these choices must be made with the cluster's future network changes in mind.
References: addons/…/install.sh• L3-19 addons/…/install.sh• L22-74 addons/…/plaintext.yaml• L4284-4493 addons/…/Manifest• L1-3
Calico
Calico provides a CNI network with node agents and a Kubernetes controller. It uses the cluster pod CIDR for pod address allocation and installs its CNI configuration as part of the network addon.
The Calico package selects the kubeadm patch shape that matches the cluster configuration API. Kubernetes 1.37 and later use the v1beta4 form, while older configurations use the earlier map form. The package does not provide a Network Policy Controller and is not compatible with the Rook addon. These limits matter when selecting Calico for a cluster that needs network policy control or Rook-managed storage.
References: addons/…/install.sh• L2-23 addons/…/install-test.sh• L28-43 addons/…/kubeadm-cluster-config-v1beta4.yml• L1-14 addons/…/calico.yaml• L1-47 addons/…/README.md• L1-4
Flannel
Flannel provides a simple pod network that uses a VXLAN backend for traffic between nodes. It installs the Flannel CNI plugin and a node-level network agent, then waits for the network to become ready.
Flannel requires the containerd runtime in this distribution. Nodes must also allow UDP port 8472 for the network overlay. The package can select the interface that carries the node's private address and has a host workaround for VMware VMXNET3 networking. IPv6 and network encryption remain incomplete in the addon path, so those needs require a different CNI choice.
Flannel checks the overlay port before a new install and provides support-bundle checks for its network configuration and Kubernetes access. These checks help separate blocked node traffic from a bad network configuration or missing permissions.
Flannel has a supported migration path from Weave. That path can require whole-cluster downtime and coordinated work on control-plane and worker nodes. Before the change, it checks node connectivity and can check Rook health because the network change affects other cluster services.
References: addons/…/install.sh• L8-23 addons/…/install.sh• L95-125 addons/…/install.sh• L127-164 addons/…/flannel-ethtool.service• L1-12 addons/…/host-preflight.yaml• L1-27 addons/…/troubleshoot.yaml• L8-59 addons/…/kube-flannel.yml• L61-98
Weave
Weave provides the pod network through a node daemonset. The addon can preserve an existing pod network range and can apply settings for inter-node encryption or local traffic masquerading.
Weave checks network readiness after it applies the cluster resources. Its host behavior includes a kernel-version warning when a node cannot use optimized peer connections. The network state is stored in node interfaces and CNI files, which makes a later provider change a host and cluster operation rather than only a resource update.
References: addons/…/install.sh• L6-34 addons/…/install.sh• L46-83 addons/…/install.sh• L85-98 addons/…/weave-daemonset-k8s-1.11.yaml• L103-140
Network addon lifecycle
Installation flow
Network installation connects cluster configuration with node-level network state. The selected addon first prepares pod CIDR and host settings, then renders its resources and applies them to the cluster. A readiness check confirms that the provider can serve traffic before later addons depend on it.
The common shape of the flow is:
flowchart LR
A[Select CNI provider] --> B[Prepare pod network and host prerequisites]
B --> C[Render provider resources]
C --> D[Apply cluster and node network state]
D --> E[Check network readiness]
E --> F[Allow dependent addons]
The pod CIDR is part of cluster setup for Antrea, Calico, and Flannel. Weave can discover the range from its existing node network. This difference matters during upgrades because a provider must keep the existing address plan or use an explicit migration path.
References: addons/…/install.sh• L3-13 addons/…/install.sh• L2-16 addons/…/install.sh• L13-35 addons/…/install.sh• L2-4
Provider migration
Changing a CNI provider changes both Kubernetes resources and node network state. The safe path depends on the source and target pair. Some pairs are blocked, while the Weave-to-Flannel path removes the old provider, updates cluster network settings, replaces node state, restarts affected services, and verifies the new network.
Contour and storage services can be affected while the network is changing. The Flannel migration therefore checks node reachability and coordinates service scale-down and restart steps when required. Engineers should treat a CNI migration as a planned cluster event rather than as a normal addon refresh.
References: addons/…/install.sh• L26-29 addons/…/install.sh• L21-24 addons/…/install.sh• L37-76 addons/…/install.sh• L380-405
Ingress flow
Contour turns Kubernetes ingress intent into external HTTP and HTTPS access. The controller and Envoy proxy are installed in a dedicated namespace, then the Envoy service maps the public ports to the proxy listeners.
This diagram shows how Contour reads an application route to configure Envoy, while client traffic uses the resulting proxy path.
flowchart LR
A[Ingress, HTTPProxy, or Gateway route] --> B[Contour controller]
B --> C[Envoy proxy configuration]
D[Client request] --> E[Envoy NodePort service]
E --> F[Envoy proxy]
F --> G[Application service]
C -. configures .-> F
The addon sets HTTP and HTTPS NodePort values and a minimum TLS protocol through its rendered configuration. It waits for both the Contour deployment and the Envoy daemonset, so ingress is considered ready only after both control and data paths are available. Upgrade checks deploy an HTTP application and request it through the node address before and after a Contour upgrade.
The release template supports the distroless Envoy image tag used by current Contour releases. From Contour 1.33.7 onward, it maps the package images to the SecureBuild image repositories and verifies that the manifest and rendered files agree.
References: addons/…/install.sh• L2-18 addons/…/install.sh• L20-46 addons/…/tmpl-service-patch.yaml• L1-19 addons/…/tmpl-configmap.yaml• L20-59 addons/…/script.sh• L6-30 addons/…/script.sh• L66-113 addons/…/k8s-docker.yaml• L1-41
Release packaging
Network addon releases are generated from upstream assets and become versioned packages only after their images and resource files pass the package checks. Flannel uses a temporary staging directory and moves it into place after generation and image verification succeed, so a failed generation does not look like a complete release.
References: addons/…/generate.sh• L5-25 addons/…/generate.sh• L27-46 addons/…/generate.sh• L48-59 addons/…/Manifest• L1-2
Network contracts
Pod network contract
Every selected CNI must establish a usable pod network on all cluster nodes. The provider must align its pod address plan with Kubernetes cluster configuration and must leave a working CNI configuration for the container runtime to use.
The main provider differences are:
| Provider | Main network property | Important selection boundary |
|---|---|---|
| Antrea | Network policy support and optional encrypted node traffic | Encrypted mode needs host kernel support; direct Weave migration is blocked |
| Calico | CNI network with pod-CIDR allocation | This package has no Network Policy Controller and is not compatible with Rook |
| Flannel | VXLAN-based node overlay | Requires containerd and UDP 8472; IPv6 and encryption are not complete |
| Weave | Existing-range aware network with optional encryption | Provider changes can require host cleanup and coordinated node restarts |
References: addons/…/install.sh• L15-19 addons/…/calico.yaml• L18-47 addons/…/kube-flannel.yml• L71-98 addons/…/install.sh• L14-29
Ingress contract
Contour requires a working CNI before it can place its controller and Envoy pods. It provides an ingress control plane and exposes the Envoy data path through configurable HTTP and HTTPS NodePorts.
The ingress contract also includes route resources and TLS behavior. The package uses a default minimum TLS version of 1.2 and supports a namespace setting for the Contour resources, so changes to those values affect both generated configuration and the service that receives external traffic.
References: addons/…/categories.json• L1-6 addons/…/install.sh• L2-18 addons/…/tmpl-kustomization.yaml• L1-11 addons/…/tmpl-service-patch.yaml• L3-19 addons/…/tmpl-configmap.yaml• L29-54
Change checklist
When these files or sections are changed, remember to consider these:
- When a CNI changes its pod CIDR or runtime needs, review kubeadm network settings and every dependent addon that uses the cluster network.
- When Flannel's overlay settings change, verify UDP 8472 reachability on every node and review the Weave migration path.
- When Flannel's host preflight or support checks change, keep the port test, network readiness check, and diagnostic messages aligned with the actual overlay requirements.
- When a provider migration path changes, check both the old provider's host files and the new provider's cluster resources.
- When Calico package limits change, review Rook selection and any expectation that the CNI supplies network policy control. When kubeadm changes its configuration API, update both Calico patch shapes and the version-selection check.
- When Contour's namespace or NodePorts change, keep the generated service patch, configuration, and ingress documentation aligned. Also verify that readiness checks use the selected namespace.
- When Contour's TLS defaults change, review the external client contract and any route or certificate setup that relies on the default.
- When the Contour release generator changes its image parsing or template steps, verify the release manifest, generated assets, SecureBuild image mapping, and image tags as one package.
- When the Flannel release generator changes its staging or image checks, verify that a failed generation cannot leave a partial version directory and that the final manifest matches the rendered resources.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| Antrea encryption is enabled without the required WireGuard host support. | Antrea stops before it can provide the network. | Check the kernel feature on every target node or disable encryption. |
| Flannel runs with Docker or without UDP 8472 between nodes. | Flannel cannot provide reliable cross-node pod traffic. | Use containerd and open and test UDP 8472 before installation or migration. |
| Flannel's network configuration is malformed or its agent lacks Kubernetes access. | The node agent cannot start the overlay or manage its node state. | Use the Flannel support checks to confirm configuration format and access. |
| A VMware VMXNET3 node keeps incompatible checksum offloading enabled. | VXLAN traffic can fail or behave incorrectly on that node. | Install and start the Flannel ethtool service on affected hosts. |
| A blocked CNI migration is attempted. | The installer refuses the change or leaves the old provider in place. | Use a supported provider pair and follow its planned migration procedure. |
| Weave-to-Flannel migration loses its node cleanup or restart step. | Old host network state can conflict with Flannel and disrupt cluster services. | Complete the control-plane and worker node steps, then wait for Flannel readiness. |
| Calico is selected with Rook or with a need for its own Network Policy Controller. | The selected cluster feature set is unsupported or incomplete. | Select a compatible CNI and validate addon role constraints before installation. |
| Calico uses the wrong kubeadm patch shape for the cluster configuration API. | Cluster network settings may not be applied during initialization. | Select the v1beta4 patch for Kubernetes 1.37 and later and retain the earlier patch for older configurations. |
| Contour is installed before a CNI is ready. | Contour or Envoy pods cannot reach the cluster network. | Install and verify one CNI provider before enabling ingress. |
| Contour NodePorts conflict with another service. | External HTTP or HTTPS traffic cannot reach Envoy on the expected ports. | Reserve the configured ports and check existing services before applying Contour. |
A non-default Contour namespace is selected while readiness checks or fixed resource patches still use projectcontour. | Installation can apply resources but report ingress as not ready or leave some resources in the wrong namespace. | Keep the default namespace or align all generated resources, patches, and readiness checks with CONTOUR_NAMESPACE. |
| The Contour release generator receives an image tag form that its rewrite rules do not cover. | SecureBuild mapping or manifest generation can fail, so the release cannot be trusted. | Update the image patterns and verify every generated manifest and resource file together. |
| Flannel release generation fails before its staged directory is moved into place. | A partial package can be mistaken for a usable version if staging is not preserved. | Generate in the temporary directory and publish only after image verification succeeds. |
Key files
| File | Why to read it |
|---|---|
| addons/…/categories.json | Shows Antrea's role and container-runtime requirement. |
| addons/…/install.sh | Shows Antrea's host prerequisites, encryption boundary, and network readiness path. |
| addons/…/install.sh | Shows how Calico connects pod CIDR setup with cluster resource application and selects the kubeadm patch shape. |
| addons/…/kubeadm-cluster-config-v1beta4.yml | Shows the kubeadm network shape used by newer Kubernetes releases. |
| addons/…/install-test.sh | Shows the compatibility check for old and new kubeadm configuration shapes. |
| addons/…/README.md | States the package limits that affect Rook and network policy selection. |
| addons/…/install.sh | Shows Flannel's runtime boundary, port requirement, readiness check, and migration work. |
| addons/…/host-preflight.yaml | Shows the host check for the Flannel node-to-node port. |
| addons/…/kube-flannel.yml | Shows the high-level Flannel node network and VXLAN configuration. |
| addons/…/troubleshoot.yaml | Shows the support checks for Flannel configuration and Kubernetes access. |
addons/flannel/0.28.10/flannel-ethtool.service | Shows the VMware VXLAN checksum-offload workaround. |
| addons/…/generate.sh | Shows how Flannel releases are generated, verified, and published from a staging directory. |
| addons/…/install.sh | Shows Weave's network preservation, optional settings, and readiness behavior. |
| addons/…/categories.json | Shows that ingress depends on both a CNI provider and a container runtime. |
| addons/…/install.sh | Shows Contour's defaults, resource assembly, namespace handling, and controller and proxy readiness checks. |
| addons/…/tmpl-service-patch.yaml | Shows how external HTTP and HTTPS traffic reaches Envoy. |
| addons/…/tmpl-configmap.yaml | Shows the ingress TLS and route-related defaults that become runtime configuration. |
| addons/…/contour.yaml | Shows the packaged Contour resources, route definitions, controller, Envoy proxy, and Gateway API permissions. |
| addons/…/script.sh | Shows how upstream Contour releases become versioned packages and how image tags map to SecureBuild images. |