Skip to content

Commit

Permalink
Merge pull request #17215 from aojea/kindnet_ipam
Browse files Browse the repository at this point in the history
Kindnet requires cluster to provide ipam via the node.spec.podcidr
  • Loading branch information
k8s-ci-robot authored Jan 16, 2025
2 parents e9921c9 + 46b440a commit 8b292cb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/model/components/kubecontrollermanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func (b *KubeControllerManagerOptionsBuilder) BuildOptions(o *kops.Cluster) erro
networking := &clusterSpec.Networking
if networking.Kubenet != nil {
kcm.ConfigureCloudRoutes = fi.PtrTo(true)
} else if gce.UsesIPAliases(o) {
} else if networking.GCP != nil {
kcm.ConfigureCloudRoutes = fi.PtrTo(false)
if kcm.CloudProvider == "external" {
// kcm should not allocate node cidrs with the CloudAllocator if we're using the external CCM
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ ClusterName: privatekindnet.example.com
ConfigBase: memfs://clusters.example.com/privatekindnet.example.com
InstanceGroupName: master-us-test-1a
InstanceGroupRole: ControlPlane
NodeupConfigHash: lgPxiqJbDn1WQqD2BR2dzZRFvgBtedQIcphqjfGgam0=
NodeupConfigHash: jTF3I7at/1p0jwCMDz9kTq2uKvqMG+UEhKlJd1X96+8=
__EOF_KUBE_ENV

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ spec:
serviceClusterIPRange: 100.64.0.0/13
storageBackend: etcd3
kubeControllerManager:
allocateNodeCIDRs: false
allocateNodeCIDRs: true
attachDetachReconcileSyncPeriod: 1m0s
cloudProvider: external
clusterCIDR: 100.96.0.0/11
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ CAs:
ClusterName: privatekindnet.example.com
ControlPlaneConfig:
KubeControllerManager:
allocateNodeCIDRs: false
allocateNodeCIDRs: true
attachDetachReconcileSyncPeriod: 1m0s
cloudProvider: external
clusterCIDR: 100.96.0.0/11
Expand Down

0 comments on commit 8b292cb

Please sign in to comment.