Merge pull request #16228 from hakman/ccm-concurrent-node-syncs

Add option for setting CCM ConcurrentNodeSyncs
This commit is contained in:
Kubernetes Prow Robot 2024-01-06 07:03:13 +01:00 committed by GitHub
commit 47d3c9103d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 37 additions and 1 deletions

View File

@ -598,6 +598,11 @@ spec:
clusterName:
description: ClusterName is the instance prefix for the cluster.
type: string
concurrentNodeSyncs:
description: 'ConcurrentNodeSyncs is the number of workers concurrently
synchronizing nodes. (default: 1)'
format: int32
type: integer
configureCloudRoutes:
description: ConfigureCloudRoutes enables CIDRs allocated with
to be configured on the cloud provider.

View File

@ -716,6 +716,8 @@ type CloudControllerManagerConfig struct {
CPURequest *resource.Quantity `json:"cpuRequest,omitempty"`
// NodeStatusUpdateFrequency is the duration between node status updates. (default: 5m)
NodeStatusUpdateFrequency *metav1.Duration `json:"nodeStatusUpdateFrequency,omitempty" flag:"node-status-update-frequency"`
// ConcurrentNodeSyncs is the number of workers concurrently synchronizing nodes. (default: 1)
ConcurrentNodeSyncs *int32 `json:"concurrentNodeSyncs,omitempty" flag:"concurrent-node-syncs"`
}
// KubeSchedulerConfig is the configuration for the kube-scheduler

View File

@ -722,6 +722,8 @@ type CloudControllerManagerConfig struct {
CPURequest *resource.Quantity `json:"cpuRequest,omitempty"`
// NodeStatusUpdateFrequency is the duration between node status updates. (default: 5m)
NodeStatusUpdateFrequency *metav1.Duration `json:"nodeStatusUpdateFrequency,omitempty" flag:"node-status-update-frequency"`
// ConcurrentNodeSyncs is the number of workers concurrently synchronizing nodes. (default: 1)
ConcurrentNodeSyncs *int32 `json:"concurrentNodeSyncs,omitempty" flag:"concurrent-node-syncs"`
}
// KubeSchedulerConfig is the configuration for the kube-scheduler

View File

@ -2234,6 +2234,7 @@ func autoConvert_v1alpha2_CloudControllerManagerConfig_To_kops_CloudControllerMa
out.EnableLeaderMigration = in.EnableLeaderMigration
out.CPURequest = in.CPURequest
out.NodeStatusUpdateFrequency = in.NodeStatusUpdateFrequency
out.ConcurrentNodeSyncs = in.ConcurrentNodeSyncs
return nil
}
@ -2267,6 +2268,7 @@ func autoConvert_kops_CloudControllerManagerConfig_To_v1alpha2_CloudControllerMa
out.EnableLeaderMigration = in.EnableLeaderMigration
out.CPURequest = in.CPURequest
out.NodeStatusUpdateFrequency = in.NodeStatusUpdateFrequency
out.ConcurrentNodeSyncs = in.ConcurrentNodeSyncs
return nil
}

View File

@ -870,6 +870,11 @@ func (in *CloudControllerManagerConfig) DeepCopyInto(out *CloudControllerManager
*out = new(v1.Duration)
**out = **in
}
if in.ConcurrentNodeSyncs != nil {
in, out := &in.ConcurrentNodeSyncs, &out.ConcurrentNodeSyncs
*out = new(int32)
**out = **in
}
return
}

View File

@ -713,6 +713,8 @@ type CloudControllerManagerConfig struct {
CPURequest *resource.Quantity `json:"cpuRequest,omitempty"`
// NodeStatusUpdateFrequency is the duration between node status updates. (default: 5m)
NodeStatusUpdateFrequency *metav1.Duration `json:"nodeStatusUpdateFrequency,omitempty" flag:"node-status-update-frequency"`
// ConcurrentNodeSyncs is the number of workers concurrently synchronizing nodes. (default: 1)
ConcurrentNodeSyncs *int32 `json:"concurrentNodeSyncs,omitempty" flag:"concurrent-node-syncs"`
}
// KubeSchedulerConfig is the configuration for the kube-scheduler

View File

@ -2336,6 +2336,7 @@ func autoConvert_v1alpha3_CloudControllerManagerConfig_To_kops_CloudControllerMa
out.EnableLeaderMigration = in.EnableLeaderMigration
out.CPURequest = in.CPURequest
out.NodeStatusUpdateFrequency = in.NodeStatusUpdateFrequency
out.ConcurrentNodeSyncs = in.ConcurrentNodeSyncs
return nil
}
@ -2369,6 +2370,7 @@ func autoConvert_kops_CloudControllerManagerConfig_To_v1alpha3_CloudControllerMa
out.EnableLeaderMigration = in.EnableLeaderMigration
out.CPURequest = in.CPURequest
out.NodeStatusUpdateFrequency = in.NodeStatusUpdateFrequency
out.ConcurrentNodeSyncs = in.ConcurrentNodeSyncs
return nil
}

View File

@ -781,6 +781,11 @@ func (in *CloudControllerManagerConfig) DeepCopyInto(out *CloudControllerManager
*out = new(v1.Duration)
**out = **in
}
if in.ConcurrentNodeSyncs != nil {
in, out := &in.ConcurrentNodeSyncs, &out.ConcurrentNodeSyncs
*out = new(int32)
**out = **in
}
return
}

View File

@ -878,6 +878,11 @@ func (in *CloudControllerManagerConfig) DeepCopyInto(out *CloudControllerManager
*out = new(v1.Duration)
**out = **in
}
if in.ConcurrentNodeSyncs != nil {
in, out := &in.ConcurrentNodeSyncs, &out.ConcurrentNodeSyncs
*out = new(int32)
**out = **in
}
return
}

View File

@ -35,6 +35,7 @@ spec:
allocateNodeCIDRs: true
clusterCIDR: 100.96.0.0/11
clusterName: complex.example.com
concurrentNodeSyncs: 5
configureCloudRoutes: false
enableLeaderMigration: true
image: registry.k8s.io/provider-aws/cloud-controller-manager:v1.24.15

View File

@ -35,6 +35,7 @@ spec:
- --allocate-node-cidrs=true
- --cluster-cidr=100.96.0.0/11
- --cluster-name=complex.example.com
- --concurrent-node-syncs=5
- --configure-cloud-routes=false
- --enable-leader-migration=true
- --leader-elect=true

View File

@ -113,7 +113,7 @@ spec:
version: 9.99.0
- id: k8s-1.18
manifest: aws-cloud-controller.addons.k8s.io/k8s-1.18.yaml
manifestHash: 9f2124a3cd64512b87897b80a3e8eea5bd3bff91ff77102394b1fdcb86c98686
manifestHash: 82074c9f079b6bf85b323acce3f6c18ccc49d62d3c59656ecdd28198ed48729d
name: aws-cloud-controller.addons.k8s.io
selector:
k8s-addon: aws-cloud-controller.addons.k8s.io

View File

@ -25,6 +25,8 @@ spec:
- 1.1.1.0/24
- pl-44444444
channel: stable
cloudControllerManager:
concurrentNodeSyncs: 5
cloudProvider: aws
cloudLabels:
Owner: John Doe

View File

@ -25,6 +25,8 @@ spec:
- 1.1.1.0/24
- pl-44444444
channel: stable
cloudControllerManager:
concurrentNodeSyncs: 5
cloudProvider: aws
cloudLabels:
Owner: John Doe