mirror of https://github.com/kubernetes/kops.git
Merge pull request #16253 from argusua/fix-max-pods-when-cilium-ipam-eni-used
aws: fix maxPods when cilium ipam=eni is used
This commit is contained in:
commit
82f4082e8f
|
|
@ -634,7 +634,7 @@ func (b *KubeletBuilder) buildKubeletConfigSpec() (*kops.KubeletConfigSpec, erro
|
||||||
c.ClientCAFile = filepath.Join(b.PathSrvKubernetes(), "ca.crt")
|
c.ClientCAFile = filepath.Join(b.PathSrvKubernetes(), "ca.crt")
|
||||||
|
|
||||||
// Respect any MaxPods value the user sets explicitly.
|
// 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())
|
sess := session.Must(session.NewSession())
|
||||||
metadata := ec2metadata.New(sess)
|
metadata := ec2metadata.New(sess)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue