Make --networking=cilium-eni configure cilium to use eni ipam

This commit is contained in:
Ole Markus With 2022-11-23 07:29:10 +01:00
parent 7a1f0f4bda
commit f75bc66732
2 changed files with 2 additions and 0 deletions

View File

@ -42,6 +42,7 @@ spec:
networking:
cilium:
enableNodePort: true
ipam: eni
nonMasqueradeCIDR: 100.64.0.0/10
sshAccess:
- 0.0.0.0/0

View File

@ -1143,6 +1143,7 @@ func setupNetworking(opt *NewClusterOptions, cluster *api.Cluster) error {
cluster.Spec.Networking.Cilium.EtcdManaged = true
case "cilium-eni":
addCiliumNetwork(cluster)
cluster.Spec.Networking.Cilium.IPAM = "eni"
case "gce":
cluster.Spec.Networking.GCE = &api.GCENetworkingSpec{}
default: