Skip to content

Commit 592f647

Browse files
authored
Include cilium ENI CIDRs in NodePort ingress rules configuration (#1511)
1 parent 034997d commit 592f647

File tree

3 files changed

+37
-1
lines changed

3 files changed

+37
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1818
- `node.cluster.x-k8s.io/uninitialized:NoSchedule`
1919
- `node.cilium.io/agent-not-ready:NoSchedule`
2020
- `ebs.csi.aws.com/agent-not-ready:NoExecute`
21+
- Include `cilium` ENI mode pod CIDRs in the NodePort Services security group ingress rules.
2122

2223
### Removed
2324

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
global:
2+
release:
3+
version: 29.1.0
4+
metadata:
5+
name: test-wc-multiple-vpc-cidrs
6+
organization: test
7+
servicePriority: lowest
8+
connectivity:
9+
baseDomain: example.com
10+
cilium:
11+
ipamMode: eni
12+
network:
13+
nodePortIngressRuleCidrBlocks:
14+
- 10.4.0.0/16
15+
- 10.5.0.0/16
16+
pods:
17+
cidrBlocks:
18+
- 10.10.0.0/16
19+
vpcCidrs:
20+
- 10.1.0.0/16
21+
- 10.2.0.0/16
22+
- 10.3.0.0/16
23+
- 10.4.0.0/16
24+
providerSpecific:
25+
region: "eu-west-1"
26+
managementCluster: test
27+
28+
cluster:
29+
internal:
30+
ephemeralConfiguration:
31+
offlineTesting:
32+
renderWithoutReleaseResource: true

helm/cluster-aws/templates/_aws_cluster.tpl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,10 @@ spec:
162162
{{- end }}
163163
{{ end }}
164164
{{- end }}
165-
{{- $allCidrs := concat $vpcCidrs ($.Values.global.connectivity.network.nodePortIngressRuleCidrBlocks | default list) }}
165+
{{- $allCidrs := concat $vpcCidrs ($.Values.global.connectivity.network.nodePortIngressRuleCidrBlocks | default (list)) }}
166+
{{- if eq (required "global.connectivity.cilium.ipamMode is required" .Values.global.connectivity.cilium.ipamMode) "eni" }}
167+
{{- $allCidrs = concat $allCidrs ($.Values.global.connectivity.network.pods.cidrBlocks | default (list)) }}
168+
{{- end }}
166169
{{- $seen := dict }}
167170
nodePortIngressRuleCidrBlocks:
168171
{{- range $cidr := $allCidrs }}

0 commit comments

Comments
 (0)