mirror of https://github.com/kubernetes/kops.git
Make --networking=cilium-eni configure cilium to use eni ipam
This commit is contained in:
parent
7a1f0f4bda
commit
f75bc66732
|
@ -42,6 +42,7 @@ spec:
|
||||||
networking:
|
networking:
|
||||||
cilium:
|
cilium:
|
||||||
enableNodePort: true
|
enableNodePort: true
|
||||||
|
ipam: eni
|
||||||
nonMasqueradeCIDR: 100.64.0.0/10
|
nonMasqueradeCIDR: 100.64.0.0/10
|
||||||
sshAccess:
|
sshAccess:
|
||||||
- 0.0.0.0/0
|
- 0.0.0.0/0
|
||||||
|
|
|
@ -1143,6 +1143,7 @@ func setupNetworking(opt *NewClusterOptions, cluster *api.Cluster) error {
|
||||||
cluster.Spec.Networking.Cilium.EtcdManaged = true
|
cluster.Spec.Networking.Cilium.EtcdManaged = true
|
||||||
case "cilium-eni":
|
case "cilium-eni":
|
||||||
addCiliumNetwork(cluster)
|
addCiliumNetwork(cluster)
|
||||||
|
cluster.Spec.Networking.Cilium.IPAM = "eni"
|
||||||
case "gce":
|
case "gce":
|
||||||
cluster.Spec.Networking.GCE = &api.GCENetworkingSpec{}
|
cluster.Spec.Networking.GCE = &api.GCENetworkingSpec{}
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue