Move the dse-k8s-eqiad Pod network from 10.67.24.0/21 to 10.68.0.0/17, as required by the parent task T429773.
The original plan in this description was a full quiesce of the cluster inside a maintenance window. It has been replaced by a rolling migration that needs no downtime. The reasoning is written up in T430658#12337206.
The short version: clusterCIDR is only read by kube-proxy, and only when detectLocalMode is ClusterCIDR.
Switching dse-k8s-eqiad to detectLocalMode: InterfaceNamePrefix (prefix cali) detaches kube-proxy from the Pod IP range entirely, which lets both ranges be live at once while we roll the cluster onto the new pool.
This description is the working checklist. The migration is reversible up to phase 6.
Patches
- k8s::prox` detect-local support. No-op on every cluster.
- enable detect-local support for dse-k8s-eqiad
- 128 reverse DNS delegations for 10.68.0.0/17
- second dse-kubepods entry in modules/network/data/data.yaml
- 10.68.0.0/17 in the allow-pod-to-pod GlobalNetworkPolicy
- 10.68.0.0/17 in the BGP prefix lists
- the temporary removal of `dse-k8s-worker101(5-7), to be reverted in phase 5.
Phase 0 - prerequisites
Nothing here touches running Pods. All of it must be live before a single Pod gets an address from the new range.
- Netbox: 10.68.0.0/17 allocated (prefix 1532). The old /21 stays allocated until phase 6.
- Confirm homer has actually pushed the prefix lists to the eqiad routers and ToR switches.
- Merge 1343090, then confirm DSE_KUBEPODS_NETWORKS holds both ranges on a consumer host (nft list set inet base DSE_KUBEPODS_NETWORKS_ipv4, or the ferm def in /etc/ferm/conf.d/00_defs). Consumers: PKI, Ceph, dumps distribution, Puppet servers, Matomo DB, Airflow.
- Apply the merged GlobalNetworkPolicy to the cluster - merging 1343097 did not deploy it: helmfile -e dse-k8s-eqiad -l name=calico apply. Confirm with kubectl get globalnetworkpolicy allow-pod-to-pod -o yaml that 10.68.0.0/17 is listed.
- Merge the operations/dns change adding the 128 /24 reverse delegations for 10.68.0.0/17 to dse-k8s-ctrl1001/1002. CoreDNS on the control planes answers Pod PTR queries through the kubepods plugin, and 10.in-addr.arpa delegates one /24 at a time, so migrated Pods lose reverse DNS without it. CoreDNS itself needs no change - the Corefile passes it no Pod CIDR.
Known gap, deliberately deferred: dumpsgen_authorized_keys and analytics_sre_authorized_keys pin from="10.67.24.0/21,...". The firewall opens for the new range automatically, but sshd will still refuse it, so rsync from new-range Pods will fail until those two files are updated.
Phase 1 - switch kube-proxy detect-local mode
- Merge 1343023. Verify no diff on any node: /etc/kubernetes/kube-proxy-config.yaml should be unchanged everywhere.
- Disable puppet on all dse-k8s-eqiad workers and control planes, so that merging 1343024 does not restart kube-proxy fleet-wide on the next agent run.
- Merge 1343024.
- Enable puppet and run it on one worker only. Check:
- detectLocalMode: InterfaceNamePrefix and detectLocal.interfaceNamePrefix: cali present, clusterCIDR absent
- systemctl status kube-proxy healthy
- iptables-save -t nat | grep -c 'cali+' is non-zero
- from a Pod on that node, connect to a ClusterIP and confirm the backend still logs a Pod IP rather than a node IP
- Roll puppet across the remaining workers and the control planes.
Phase 2 - add the new pool
- Add 10.68.0.0/17 as a second entry in the IPPools map in dse-k8s-eqiad/calico-values.yaml. The chart generates the IPPool and the BGP prefixAdvertisements from that map, so this is values-only.
- helmfile -e dse-k8s-eqiad -l name=calico apply
- Confirm the new IPPool exists and the routers are accepting /26s from it.
Phase 3 - disable the old pool
- Set disabled: true on the existing v4 pool in calico-values.yaml, not with kubectl patch, or the next helmfile run will revert it.
- helmfile -e dse-k8s-eqiad -l name=calico apply
- Existing Pods and blocks keep working. Confirm no new allocations come from 10.67.24.0/21.
Phase 4 - roll the nodes
Pre-flight: the cookbook refuses to start if any node is cordoned. Check kubectl get nodes and uncordon everything first, including anything left cordoned from T429773.
- cookbook sre.k8s.reboot-nodes --k8s-cluster dse-eqiad --alias dse-k8s-worker-eqiad --batchsize 1 --task-id T430658 reboot
- Do not pass --minimal-cordon. The default behaviour cordons the nodes it has not reached yet after the first batch, which is what stops evicted Pods bouncing back onto the old range.
- The dedicated wdqs workers are a separate taint group and are processed separately.
- Watch progress with calicoctl ipam show --show-blocks. Calico releases old blocks as they empty.
Phase 5 - verify
- No blocks remain in 10.67.24.0/21.
- New Pods get addresses from 10.68.0.0/17.
- BGP sessions up, /26s from the new range accepted on the routers and switches.
- Pods can reach their backends: HDFS, Hive, Kerberos, databases, Ceph, PKI.
- Flink applications are RUNNING / STABLE and consuming from where they left off.
- Bring the cluster past the old 32 node limit: revert 1305467 to return dse-k8s-worker101[567], and confirm the previously blocked workers claim blocks and schedule Pods.
Phase 6 - cleanup
From here the migration is no longer reversible.
- Remove the old pool from calico-values.yaml and apply.
- Remove cluster_cidr for dse-k8s-eqiad from hieradata/common/kubernetes.yaml.
- Remove 10.67.24.0/21 from the allow-pod-to-pod GlobalNetworkPolicy.
- Remove the old dse-kubepods entry from modules/network/data/data.yaml.
- Remove the 8 reverse DNS delegations for 10.67.24.0/21 from templates/10.in-addr.arpa.
- Update the two authorized_keys files noted in phase 0.
- Remove the old /21 from the homer prefix lists.
- Release 10.67.24.0/21 in Netbox.
Rollback
Up to the end of phase 5, set disabled: false on the old pool and revert 1343024. Pods return to the old range as they are recreated. Both ranges stay permitted throughout, so neither state is broken.
Out of scope
- Migrating the other clusters to detectLocalMode: InterfaceNamePrefix. @JMeybohm suggested doing this fleet-wide once it is proven here and making it the default option in our puppet manifests.

