Skip to content

Commit

Permalink
aws: fix maxPods when cilium ipam is used
Browse files Browse the repository at this point in the history
Co-authored-by: Ciprian Hacman <ciprian@hakman.dev>
  • Loading branch information
argusua and hakman committed Jan 19, 2024
1 parent 5850f4f commit 38569de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nodeup/pkg/model/kubelet.go
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,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)

Expand Down

0 comments on commit 38569de

Please sign in to comment.