mirror of https://github.com/kubernetes/kops.git
aws: fix maxPods when cilium ipam is used
Co-authored-by: Ciprian Hacman <ciprian@hakman.dev>
This commit is contained in:
parent
63e5d6ce73
commit
d9075f1d18
|
|
@ -634,7 +634,7 @@ func (b *KubeletBuilder) buildKubeletConfigSpec() (*kops.KubeletConfigSpec, erro
|
|||
c.ClientCAFile = filepath.Join(b.PathSrvKubernetes(), "ca.crt")
|
||||
|
||||
// Respect any MaxPods value the user sets explicitly.
|
||||
if b.NodeupConfig.Networking.AmazonVPC != nil && c.MaxPods == nil {
|
||||
if (b.NodeupConfig.Networking.AmazonVPC != nil || (b.NodeupConfig.Networking.Cilium != nil && b.NodeupConfig.Networking.Cilium.IPAM == kops.CiliumIpamEni)) && c.MaxPods == nil {
|
||||
sess := session.Must(session.NewSession())
|
||||
metadata := ec2metadata.New(sess)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue