Skip to content

Commit 253d9f3

Browse files
authored
templates: fix CAPL dual-stack Cilium nodeport config (#1050)
Upgrade the shared Cilium chart default to 1.18.7 and update the kubeadm dual-stack flavor to render explicit multi-NIC nodePort settings in the Cilium values template. Replace the old IPv4-only --nodeport-addresses flag with nodePort.addresses for both 0.0.0.0/0 and ::/0, add explicit devices for eth0 and eth1, and set directRoutingDevice to eth0. This fixes the public IPv6 NodePort datapath in generated CAPL manifests. With the dual-stack values rendered directly in the template, all intended datapaths should now be covered by the generated config.
1 parent 33c0d62 commit 253d9f3

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

templates/addons/cilium/cilium.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ spec:
99
repoURL: https://helm.cilium.io/
1010
chartName: cilium
1111
namespace: kube-system
12-
version: ${CILIUM_VERSION:=1.18.4}
12+
version: ${CILIUM_VERSION:=1.18.7}
1313
options:
1414
waitForJobs: true
1515
wait: true

templates/flavors/kubeadm/dual-stack/kustomization.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,14 @@ patches:
9595
bgpControlPlane:
9696
enabled: true
9797
routingMode: native
98+
devices:
99+
- eth0
100+
- eth1
101+
nodePort:
102+
addresses:
103+
- 0.0.0.0/0
104+
- ::/0
105+
directRoutingDevice: eth0
98106
kubeProxyReplacement: true
99107
ipv4NativeRoutingCIDR: ${VPC_NETWORK_CIDR:=10.0.0.0/8}
100108
ipv6NativeRoutingCIDR: ::/0
@@ -108,8 +116,6 @@ patches:
108116
allow-localhost: policy
109117
k8sServiceHost: {{ .InfraCluster.spec.controlPlaneEndpoint.host }}
110118
k8sServicePort: {{ .InfraCluster.spec.controlPlaneEndpoint.port }}
111-
extraArgs:
112-
- --nodeport-addresses=0.0.0.0/0
113119
ipam:
114120
mode: kubernetes
115121
ipv4:

0 commit comments

Comments
 (0)