Cilium 1.20.5 was tagged on November 17, 2026, on the same day as 1.19.11 and 1.18.17. It is a patch release, so there are no new APIs or Helm values to learn. It still deserves more attention than a routine image bump, because one policy fix can start dropping traffic that used to pass, and one IPAM default changed by a factor of ten.
This guide walks through the changes that affect running clusters, then upgrades an existing 1.20.x installation with Helm. The commands assume Cilium runs in kube-system and was installed from the cilium/cilium chart.
The toServices fix can deny traffic
This is the change to read first. The 1.20.5 docs add it to the "Action Required" list in the upgrade notes, and the same fix ships in 1.19.11 and 1.18.17.
A toServices egress rule lets a pod talk to the backends of a Kubernetes Service, referenced by name or by label selector. Cilium turns the Service's own label selector into an endpoint selector. For a Service without a selector, it converts the IPs in the Service's EndpointSlices into CIDR selectors. Many teams pair toServices with toPorts to also restrict the port:
apiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
name: allow-orders-db
namespace: shop
spec:
endpointSelector:
matchLabels:
app: orders
egress:
- toServices:
- k8sService:
serviceName: orders-db
namespace: shop
toPorts:
- ports:
- port: "5432"
protocol: TCP
Before the fix, when orders-db did not exist, or was a selector-less Service with no backends, the rule resolved to an empty peer set. The port restriction then stood alone, so the orders pods could reach any destination on TCP 5432. That is a policy bypass, and 1.20.5 closes it. Such rules now deny the traffic until the Service exists and, for a selector-less Service, has backends.
If your workloads rely on the old behavior, perhaps without knowing it, they will lose connectivity after the upgrade. A typical case is an external database modeled as a selector-less Service whose EndpointSlice was never created. The upgrade notes ask you to make sure every referenced Service exists and has backends before you upgrade. Step 2 below shows how to find these rules.
Strict egress encryption honors CIDRs with host bits
Strict egress encryption drops unencrypted pod-to-pod traffic leaving a node for a given CIDR. You configure it with encryption.strictMode.egress.enabled and encryption.strictMode.egress.cidr in Helm, which end up as encryption-strict-egress-cidr in the agent ConfigMap.
Before 1.20.5, a CIDR with host bits set, such as 10.244.1.0/16 instead of 10.244.0.0/16, let unencrypted traffic through. Strict mode exists to guarantee that no plain text leaves the node, so a silent gap here matters. After the upgrade the value is handled correctly. If you use strict mode, look at the value anyway and write it in its canonical form so the intent is obvious to the next reader:
kubectl -n kube-system get configmap cilium-config \
-o jsonpath='{.data.encryption-strict-egress-cidr}{"\n"}'
ENI IPs are released after 30 minutes
On AWS with ENI IPAM and eni.awsReleaseExcessIPs=true, the operator gives unused secondary IPs and /28 prefixes back to EC2. It first waits for the delay set by the operator flag --excess-ip-release-delay. In 1.20.5 the default of that flag rose from 180 seconds to 1800 seconds.
The changelog explains the reason. The agent could reclaim an IP after the operator had already started releasing it, and a longer wait makes that race much less likely. The cost is that nodes hold spare IPs for longer after pods go away, which matters in subnets that are close to full.
If you need the old timing, pass the flag through operator.extraArgs in your values file. Keep in mind that a shorter delay brings the race back.
operator:
extraArgs:
- --excess-ip-release-delay=180
Two new kernel options in the requirements
The system requirements for tunneling and routing now list two more kernel options:
CONFIG_NETFILTER_XT_MATCH_ADDRTYPE=m
CONFIG_NETFILTER_XT_TARGET_CT=m
They come from a datapath fix that scopes the iptables NOTRACK rules for tunnel traffic to local node addresses with an addrtype match. Mainstream distribution kernels build these netfilter modules. If you run a custom or minimal kernel, check before you upgrade:
grep -E 'CONFIG_NETFILTER_XT_MATCH_ADDRTYPE|CONFIG_NETFILTER_XT_TARGET_CT' /boot/config-$(uname -r)
Smaller changes worth knowing
The default operator.tolerations now include node-role.kubernetes.io/etcd with operator: Exists, so the operator can schedule on nodes with a dedicated etcd role. The SPIRE agent tolerations got the same entry. If you override operator.tolerations in your values, your list replaces the default and you won't get the new entry.
The agent exports five new Prometheus metrics about the ID allocators in the load balancer control plane. Each has a type label with the value service or backend. Watching cilium_loadbalancer_id_allocations against cilium_loadbalancer_id_capacity tells you how close a large cluster is to running out of service or backend IDs, and cilium_loadbalancer_id_allocation_failures_total counts the times it already did.
Several bug fixes may explain problems you have been chasing:
- WireGuard peers whose AllowedIPs stayed out of sync with the IPCache after transient errors, causing long-term traffic loss.
- DNS egress policy denying requests after the destination's security identity changed.
- L2 announcements of new IPs stopping until an agent restart after many selected Services were removed at once.
- Connections to a pod timing out when a client reused the source port of a closed NodePort or HostPort connection.
- The bandwidth manager dropping all egress traffic of a rate-limited pod for up to tens of seconds.
The bundled Envoy image moves to v1.39.6.
Step 1: confirm the running version
Patch upgrades are meant to go from one 1.20.x release to another. Check what the agent and operator run now, and confirm both report the same version:
kubectl -n kube-system get daemonset cilium \
-o jsonpath='{.spec.template.spec.containers[0].image}{"\n"}'
kubectl -n kube-system get deployment cilium-operator \
-o jsonpath='{.spec.template.spec.containers[0].image}{"\n"}'
Cilium 1.20 is tested against Kubernetes 1.33, 1.34, 1.35 and 1.36. If your control plane is outside that range, plan the Kubernetes upgrade separately.
Step 2: audit toServices rules that also set toPorts
Find every policy with an egress rule that combines the two fields. The filter checks both spec and the specs list, because a CiliumNetworkPolicy can use either:
FILTER='.items[] | select([(.spec, .specs[]?) | .egress[]? | select(.toServices and .toPorts)] | length > 0) | "\(.metadata.namespace // "cluster-wide")/\(.metadata.name)"'
kubectl get ciliumnetworkpolicies -A -o json | jq -r "$FILTER"
kubectl get ciliumclusterwidenetworkpolicies -o json | jq -r "$FILTER"
For each policy in the output, check that the referenced Service exists. For a Service without a selector, also check that its EndpointSlices contain addresses:
kubectl -n shop get service orders-db
kubectl -n shop get endpointslices -l kubernetes.io/service-name=orders-db
Fix what is missing before the upgrade, not after. Creating the Service or its EndpointSlice is usually the right fix. If the rule points at a Service that no longer exists, delete the rule, since it was only working through the bypass.
Step 3: save your current values
The upgrade guide warns that a Helm upgrade overwrites the cilium-config ConfigMap, so you have to carry your settings forward. It also says --reuse-values is only safe when the chart version stays the same, which isn't the case here. Save the values to a file instead:
helm repo add cilium https://helm.cilium.io/
helm repo update
helm get values cilium --namespace kube-system -o yaml > old-values.yaml
Review old-values.yaml now. If you want the 180 second ENI release delay back, or you override operator.tolerations, edit the file before you continue.
Step 4: run the pre-flight check
The pre-flight DaemonSet pulls the new agent image on every node before the real rollout. That keeps agent downtime short and catches ErrImagePull problems early. Its Deployment also runs a validator against your existing CiliumNetworkPolicies, and stays at 0/1 if one of them is invalid.
helm install cilium-preflight cilium/cilium --version 1.20.5 \
--namespace kube-system \
--set preflight.enabled=true \
--set agent=false \
--set operator.enabled=false
If you run without kube-proxy, add --set k8sServiceHost=API_SERVER_IP and --set k8sServicePort=API_SERVER_PORT with your API server address. Wait until the cilium-pre-flight-check DaemonSet shows the same READY count as cilium, and the Deployment shows 1/1:
kubectl -n kube-system get daemonset | sed -n '1p;/cilium/p'
kubectl -n kube-system get deployment cilium-pre-flight-check
Then remove it:
helm delete cilium-preflight --namespace kube-system
Step 5: upgrade with Helm
Run the upgrade with the saved values. Set upgradeCompatibility to the Cilium minor version this cluster was first installed with, for example 1.18. That setting stops the chart from changing critical values in the cilium-config ConfigMap, which keeps the datapath stable during the upgrade.
helm upgrade cilium cilium/cilium --version 1.20.5 \
--namespace kube-system \
-f old-values.yaml \
--set upgradeCompatibility=1.18
Helm updates the agent DaemonSet and the operator Deployment together, and the agents restart node by node. Upgrade every component in the same pass. The upgrade guide warns that running an agent and operator of different versions can cause unexpected cluster behavior.
Step 6: verify the rollout
Wait for the rollout, then check the overall status with the Cilium CLI:
kubectl -n kube-system rollout status daemonset/cilium
kubectl -n kube-system rollout status deployment/cilium-operator
cilium status --wait
Next, look for policy drops from the pods you audited in Step 2. If Hubble is enabled, a newly denied toServices rule shows up as dropped flows from the source pod:
hubble observe --namespace shop --verdict DROPPED --last 50
Rolling back
If something breaks, Helm can return the agent and operator to the previous revision. Find the revision number first:
helm history cilium --namespace kube-system
helm rollback cilium <REVISION> --namespace kube-system
A rollback restores the old toServices behavior too, so treat it as a short-term measure. The underlying problem is a missing Service or EndpointSlice, and every later release enforces the rule again.