feat(components): permit to define kube-controller-manager and kube-scheduler resources

Signed-off-by: Grégory SANCHEZ <gregory.sanchez@bedrockstreaming.com>
This commit is contained in:
Grégory SANCHEZ 2024-06-06 21:41:02 +02:00 committed by Grégory SANCHEZ
parent 372e15d537
commit 4ed822599f
16 changed files with 359 additions and 7 deletions

View File

@ -2173,6 +2173,22 @@ spec:
items:
type: string
type: array
cpuLimit:
anyOf:
- type: integer
- type: string
description: CPULimit, cpu limit compute resource for kube-controler-manager
e.g. "500m"
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
cpuRequest:
anyOf:
- type: integer
- type: string
description: CPURequest, cpu request compute resource for kube-controler-manager.
Defaults to "100m"
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
disableAttachDetachReconcileSync:
description: |-
DisableAttachDetachReconcileSync disables the reconcile sync loop in the attach-detach controller.
@ -2336,6 +2352,22 @@ spec:
master:
description: Master is the url for the kube api master
type: string
memoryLimit:
anyOf:
- type: integer
- type: string
description: MemoryLimit, memory limit compute resource for kube-controler-manager
e.g. "30Mi"
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
memoryRequest:
anyOf:
- type: integer
- type: string
description: MemoryRequest, memory request compute resource for
kube-controler-manager e.g. "30Mi"
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
minResyncPeriod:
description: |-
MinResyncPeriod indicates the resync period in reflectors.
@ -3465,6 +3497,22 @@ spec:
the burst quota is exhausted
format: int32
type: integer
cpuLimit:
anyOf:
- type: integer
- type: string
description: CPULimit, cpu limit compute resource for scheduler
e.g. "500m"
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
cpuRequest:
anyOf:
- type: integer
- type: string
description: CPURequest, cpu request compute resource for scheduler.
Defaults to "100m"
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
enableProfiling:
description: EnableProfiling enables profiling via web interface
host:port/debug/pprof/
@ -3541,6 +3589,22 @@ spec:
as outlined: https://kubernetes.io/docs/concepts/storage/storage-limits/
format: int32
type: integer
memoryLimit:
anyOf:
- type: integer
- type: string
description: MemoryLimit, memory limit compute resource for scheduler
e.g. "30Mi"
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
memoryRequest:
anyOf:
- type: integer
- type: string
description: MemoryRequest, memory request compute resource for
scheduler e.g. "30Mi"
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
qps:
anyOf:
- type: integer

View File

@ -202,6 +202,27 @@ func (b *KubeControllerManagerBuilder) buildPod(kcm *kops.KubeControllerManagerC
// Add the volumePluginDir flag if provided in the kubelet spec, or set above based on the OS
flags = append(flags, "--flex-volume-plugin-dir="+volumePluginDir)
resourceRequests := v1.ResourceList{}
resourceLimits := v1.ResourceList{}
cpuRequest := resource.MustParse("100m")
if kcm.CPURequest != nil {
cpuRequest = *kcm.CPURequest
}
resourceRequests["cpu"] = cpuRequest
if kcm.CPULimit != nil {
resourceLimits["cpu"] = *kcm.CPULimit
}
if kcm.MemoryRequest != nil {
resourceRequests["memory"] = *kcm.MemoryRequest
}
if kcm.MemoryLimit != nil {
resourceLimits["memory"] = *kcm.MemoryLimit
}
image := b.RemapImage(kcm.Image)
container := &v1.Container{
@ -221,9 +242,8 @@ func (b *KubeControllerManagerBuilder) buildPod(kcm *kops.KubeControllerManagerC
TimeoutSeconds: 15,
},
Resources: v1.ResourceRequirements{
Requests: v1.ResourceList{
v1.ResourceCPU: resource.MustParse("100m"),
},
Requests: resourceRequests,
Limits: resourceLimits,
},
}

View File

@ -217,6 +217,27 @@ func (b *KubeSchedulerBuilder) buildPod(kubeScheduler *kops.KubeSchedulerConfig)
},
}
resourceRequests := v1.ResourceList{}
resourceLimits := v1.ResourceList{}
cpuRequest := resource.MustParse("100m")
if kubeScheduler.CPURequest != nil {
cpuRequest = *kubeScheduler.CPURequest
}
resourceRequests["cpu"] = cpuRequest
if kubeScheduler.CPULimit != nil {
resourceLimits["cpu"] = *kubeScheduler.CPULimit
}
if kubeScheduler.MemoryRequest != nil {
resourceRequests["memory"] = *kubeScheduler.MemoryRequest
}
if kubeScheduler.MemoryLimit != nil {
resourceLimits["memory"] = *kubeScheduler.MemoryLimit
}
image := b.RemapImage(kubeScheduler.Image)
healthAction := &v1.HTTPGetAction{
@ -236,9 +257,8 @@ func (b *KubeSchedulerBuilder) buildPod(kubeScheduler *kops.KubeSchedulerConfig)
TimeoutSeconds: 15,
},
Resources: v1.ResourceRequirements{
Requests: v1.ResourceList{
v1.ResourceCPU: resource.MustParse("100m"),
},
Requests: resourceRequests,
Limits: resourceLimits,
},
}
kubemanifest.AddHostPathMapping(pod, container, "varlibkubescheduler", "/var/lib/kube-scheduler")

View File

@ -686,6 +686,15 @@ type KubeControllerManagerConfig struct {
EnableProfiling *bool `json:"enableProfiling,omitempty" flag:"profiling"`
// EnableLeaderMigration enables controller leader migration.
EnableLeaderMigration *bool `json:"enableLeaderMigration,omitempty" flag:"enable-leader-migration"`
// CPURequest, cpu request compute resource for kube-controler-manager. Defaults to "100m"
CPURequest *resource.Quantity `json:"cpuRequest,omitempty"`
// CPULimit, cpu limit compute resource for kube-controler-manager e.g. "500m"
CPULimit *resource.Quantity `json:"cpuLimit,omitempty"`
// MemoryRequest, memory request compute resource for kube-controler-manager e.g. "30Mi"
MemoryRequest *resource.Quantity `json:"memoryRequest,omitempty"`
// MemoryLimit, memory limit compute resource for kube-controler-manager e.g. "30Mi"
MemoryLimit *resource.Quantity `json:"memoryLimit,omitempty"`
}
// CloudControllerManagerConfig is the configuration of the cloud controller
@ -766,6 +775,15 @@ type KubeSchedulerConfig struct {
TLSCertFile *string `json:"tlsCertFile,omitempty" flag:"tls-cert-file"`
// TLSPrivateKeyFile is the file containing the private key for the TLS server certificate.
TLSPrivateKeyFile string `json:"tlsPrivateKeyFile,omitempty" flag:"tls-private-key-file"`
// CPURequest, cpu request compute resource for scheduler. Defaults to "100m"
CPURequest *resource.Quantity `json:"cpuRequest,omitempty"`
// CPULimit, cpu limit compute resource for scheduler e.g. "500m"
CPULimit *resource.Quantity `json:"cpuLimit,omitempty"`
// MemoryRequest, memory request compute resource for scheduler e.g. "30Mi"
MemoryRequest *resource.Quantity `json:"memoryRequest,omitempty"`
// MemoryLimit, memory limit compute resource for scheduler e.g. "30Mi"
MemoryLimit *resource.Quantity `json:"memoryLimit,omitempty"`
}
// LeaderElectionConfiguration defines the configuration of leader election

View File

@ -692,6 +692,15 @@ type KubeControllerManagerConfig struct {
EnableProfiling *bool `json:"enableProfiling,omitempty" flag:"profiling"`
// EnableLeaderMigration enables controller leader migration.
EnableLeaderMigration *bool `json:"enableLeaderMigration,omitempty" flag:"enable-leader-migration"`
// CPURequest, cpu request compute resource for kube-controler-manager. Defaults to "100m"
CPURequest *resource.Quantity `json:"cpuRequest,omitempty"`
// CPULimit, cpu limit compute resource for kube-controler-manager e.g. "500m"
CPULimit *resource.Quantity `json:"cpuLimit,omitempty"`
// MemoryRequest, memory request compute resource for kube-controler-manager e.g. "30Mi"
MemoryRequest *resource.Quantity `json:"memoryRequest,omitempty"`
// MemoryLimit, memory limit compute resource for kube-controler-manager e.g. "30Mi"
MemoryLimit *resource.Quantity `json:"memoryLimit,omitempty"`
}
// CloudControllerManagerConfig is the configuration of the cloud controller
@ -772,6 +781,15 @@ type KubeSchedulerConfig struct {
TLSCertFile *string `json:"tlsCertFile,omitempty" flag:"tls-cert-file"`
// TLSPrivateKeyFile is the file containing the private key for the TLS server certificate.
TLSPrivateKeyFile string `json:"tlsPrivateKeyFile,omitempty" flag:"tls-private-key-file"`
// CPURequest, cpu request compute resource for scheduler. Defaults to "100m"
CPURequest *resource.Quantity `json:"cpuRequest,omitempty"`
// CPULimit, cpu limit compute resource for scheduler e.g. "500m"
CPULimit *resource.Quantity `json:"cpuLimit,omitempty"`
// MemoryRequest, memory request compute resource for scheduler e.g. "30Mi"
MemoryRequest *resource.Quantity `json:"memoryRequest,omitempty"`
// MemoryLimit, memory limit compute resource for scheduler e.g. "30Mi"
MemoryLimit *resource.Quantity `json:"memoryLimit,omitempty"`
}
// LeaderElectionConfiguration defines the configuration of leader election

View File

@ -5047,6 +5047,10 @@ func autoConvert_v1alpha2_KubeControllerManagerConfig_To_kops_KubeControllerMana
out.EndpointSliceUpdatesBatchPeriod = in.EndpointSliceUpdatesBatchPeriod
out.EnableProfiling = in.EnableProfiling
out.EnableLeaderMigration = in.EnableLeaderMigration
out.CPURequest = in.CPURequest
out.CPULimit = in.CPULimit
out.MemoryRequest = in.MemoryRequest
out.MemoryLimit = in.MemoryLimit
return nil
}
@ -5120,6 +5124,10 @@ func autoConvert_kops_KubeControllerManagerConfig_To_v1alpha2_KubeControllerMana
out.EndpointSliceUpdatesBatchPeriod = in.EndpointSliceUpdatesBatchPeriod
out.EnableProfiling = in.EnableProfiling
out.EnableLeaderMigration = in.EnableLeaderMigration
out.CPURequest = in.CPURequest
out.CPULimit = in.CPULimit
out.MemoryRequest = in.MemoryRequest
out.MemoryLimit = in.MemoryLimit
return nil
}
@ -5279,6 +5287,10 @@ func autoConvert_v1alpha2_KubeSchedulerConfig_To_kops_KubeSchedulerConfig(in *Ku
out.EnableProfiling = in.EnableProfiling
out.TLSCertFile = in.TLSCertFile
out.TLSPrivateKeyFile = in.TLSPrivateKeyFile
out.CPURequest = in.CPURequest
out.CPULimit = in.CPULimit
out.MemoryRequest = in.MemoryRequest
out.MemoryLimit = in.MemoryLimit
return nil
}
@ -5312,6 +5324,10 @@ func autoConvert_kops_KubeSchedulerConfig_To_v1alpha2_KubeSchedulerConfig(in *ko
out.EnableProfiling = in.EnableProfiling
out.TLSCertFile = in.TLSCertFile
out.TLSPrivateKeyFile = in.TLSPrivateKeyFile
out.CPURequest = in.CPURequest
out.CPULimit = in.CPULimit
out.MemoryRequest = in.MemoryRequest
out.MemoryLimit = in.MemoryLimit
return nil
}

View File

@ -3467,6 +3467,26 @@ func (in *KubeControllerManagerConfig) DeepCopyInto(out *KubeControllerManagerCo
*out = new(bool)
**out = **in
}
if in.CPURequest != nil {
in, out := &in.CPURequest, &out.CPURequest
x := (*in).DeepCopy()
*out = &x
}
if in.CPULimit != nil {
in, out := &in.CPULimit, &out.CPULimit
x := (*in).DeepCopy()
*out = &x
}
if in.MemoryRequest != nil {
in, out := &in.MemoryRequest, &out.MemoryRequest
x := (*in).DeepCopy()
*out = &x
}
if in.MemoryLimit != nil {
in, out := &in.MemoryLimit, &out.MemoryLimit
x := (*in).DeepCopy()
*out = &x
}
return
}
@ -3681,6 +3701,26 @@ func (in *KubeSchedulerConfig) DeepCopyInto(out *KubeSchedulerConfig) {
*out = new(string)
**out = **in
}
if in.CPURequest != nil {
in, out := &in.CPURequest, &out.CPURequest
x := (*in).DeepCopy()
*out = &x
}
if in.CPULimit != nil {
in, out := &in.CPULimit, &out.CPULimit
x := (*in).DeepCopy()
*out = &x
}
if in.MemoryRequest != nil {
in, out := &in.MemoryRequest, &out.MemoryRequest
x := (*in).DeepCopy()
*out = &x
}
if in.MemoryLimit != nil {
in, out := &in.MemoryLimit, &out.MemoryLimit
x := (*in).DeepCopy()
*out = &x
}
return
}

View File

@ -683,6 +683,15 @@ type KubeControllerManagerConfig struct {
EnableProfiling *bool `json:"enableProfiling,omitempty" flag:"profiling"`
// EnableLeaderMigration enables controller leader migration.
EnableLeaderMigration *bool `json:"enableLeaderMigration,omitempty" flag:"enable-leader-migration"`
// CPURequest, cpu request compute resource for kube-controler-manager. Defaults to "100m"
CPURequest *resource.Quantity `json:"cpuRequest,omitempty"`
// CPULimit, cpu limit compute resource for kube-controler-manager e.g. "500m"
CPULimit *resource.Quantity `json:"cpuLimit,omitempty"`
// MemoryRequest, memory request compute resource for kube-controler-manager e.g. "30Mi"
MemoryRequest *resource.Quantity `json:"memoryRequest,omitempty"`
// MemoryLimit, memory limit compute resource for kube-controler-manager e.g. "30Mi"
MemoryLimit *resource.Quantity `json:"memoryLimit,omitempty"`
}
// CloudControllerManagerConfig is the configuration of the cloud controller
@ -763,6 +772,15 @@ type KubeSchedulerConfig struct {
TLSCertFile *string `json:"tlsCertFile,omitempty" flag:"tls-cert-file"`
// TLSPrivateKeyFile is the file containing the private key for the TLS server certificate.
TLSPrivateKeyFile string `json:"tlsPrivateKeyFile,omitempty" flag:"tls-private-key-file"`
// CPURequest, cpu request compute resource for scheduler. Defaults to "100m"
CPURequest *resource.Quantity `json:"cpuRequest,omitempty"`
// CPULimit, cpu limit compute resource for scheduler e.g. "500m"
CPULimit *resource.Quantity `json:"cpuLimit,omitempty"`
// MemoryRequest, memory request compute resource for scheduler e.g. "30Mi"
MemoryRequest *resource.Quantity `json:"memoryRequest,omitempty"`
// MemoryLimit, memory limit compute resource for scheduler e.g. "30Mi"
MemoryLimit *resource.Quantity `json:"memoryLimit,omitempty"`
}
// LeaderElectionConfiguration defines the configuration of leader election

View File

@ -5440,6 +5440,10 @@ func autoConvert_v1alpha3_KubeControllerManagerConfig_To_kops_KubeControllerMana
out.EndpointSliceUpdatesBatchPeriod = in.EndpointSliceUpdatesBatchPeriod
out.EnableProfiling = in.EnableProfiling
out.EnableLeaderMigration = in.EnableLeaderMigration
out.CPURequest = in.CPURequest
out.CPULimit = in.CPULimit
out.MemoryRequest = in.MemoryRequest
out.MemoryLimit = in.MemoryLimit
return nil
}
@ -5513,6 +5517,10 @@ func autoConvert_kops_KubeControllerManagerConfig_To_v1alpha3_KubeControllerMana
out.EndpointSliceUpdatesBatchPeriod = in.EndpointSliceUpdatesBatchPeriod
out.EnableProfiling = in.EnableProfiling
out.EnableLeaderMigration = in.EnableLeaderMigration
out.CPURequest = in.CPURequest
out.CPULimit = in.CPULimit
out.MemoryRequest = in.MemoryRequest
out.MemoryLimit = in.MemoryLimit
return nil
}
@ -5670,6 +5678,10 @@ func autoConvert_v1alpha3_KubeSchedulerConfig_To_kops_KubeSchedulerConfig(in *Ku
out.EnableProfiling = in.EnableProfiling
out.TLSCertFile = in.TLSCertFile
out.TLSPrivateKeyFile = in.TLSPrivateKeyFile
out.CPURequest = in.CPURequest
out.CPULimit = in.CPULimit
out.MemoryRequest = in.MemoryRequest
out.MemoryLimit = in.MemoryLimit
return nil
}
@ -5703,6 +5715,10 @@ func autoConvert_kops_KubeSchedulerConfig_To_v1alpha3_KubeSchedulerConfig(in *ko
out.EnableProfiling = in.EnableProfiling
out.TLSCertFile = in.TLSCertFile
out.TLSPrivateKeyFile = in.TLSPrivateKeyFile
out.CPURequest = in.CPURequest
out.CPULimit = in.CPULimit
out.MemoryRequest = in.MemoryRequest
out.MemoryLimit = in.MemoryLimit
return nil
}

View File

@ -3436,6 +3436,26 @@ func (in *KubeControllerManagerConfig) DeepCopyInto(out *KubeControllerManagerCo
*out = new(bool)
**out = **in
}
if in.CPURequest != nil {
in, out := &in.CPURequest, &out.CPURequest
x := (*in).DeepCopy()
*out = &x
}
if in.CPULimit != nil {
in, out := &in.CPULimit, &out.CPULimit
x := (*in).DeepCopy()
*out = &x
}
if in.MemoryRequest != nil {
in, out := &in.MemoryRequest, &out.MemoryRequest
x := (*in).DeepCopy()
*out = &x
}
if in.MemoryLimit != nil {
in, out := &in.MemoryLimit, &out.MemoryLimit
x := (*in).DeepCopy()
*out = &x
}
return
}
@ -3650,6 +3670,26 @@ func (in *KubeSchedulerConfig) DeepCopyInto(out *KubeSchedulerConfig) {
*out = new(string)
**out = **in
}
if in.CPURequest != nil {
in, out := &in.CPURequest, &out.CPURequest
x := (*in).DeepCopy()
*out = &x
}
if in.CPULimit != nil {
in, out := &in.CPULimit, &out.CPULimit
x := (*in).DeepCopy()
*out = &x
}
if in.MemoryRequest != nil {
in, out := &in.MemoryRequest, &out.MemoryRequest
x := (*in).DeepCopy()
*out = &x
}
if in.MemoryLimit != nil {
in, out := &in.MemoryLimit, &out.MemoryLimit
x := (*in).DeepCopy()
*out = &x
}
return
}

View File

@ -3615,6 +3615,26 @@ func (in *KubeControllerManagerConfig) DeepCopyInto(out *KubeControllerManagerCo
*out = new(bool)
**out = **in
}
if in.CPURequest != nil {
in, out := &in.CPURequest, &out.CPURequest
x := (*in).DeepCopy()
*out = &x
}
if in.CPULimit != nil {
in, out := &in.CPULimit, &out.CPULimit
x := (*in).DeepCopy()
*out = &x
}
if in.MemoryRequest != nil {
in, out := &in.MemoryRequest, &out.MemoryRequest
x := (*in).DeepCopy()
*out = &x
}
if in.MemoryLimit != nil {
in, out := &in.MemoryLimit, &out.MemoryLimit
x := (*in).DeepCopy()
*out = &x
}
return
}
@ -3829,6 +3849,26 @@ func (in *KubeSchedulerConfig) DeepCopyInto(out *KubeSchedulerConfig) {
*out = new(string)
**out = **in
}
if in.CPURequest != nil {
in, out := &in.CPURequest, &out.CPURequest
x := (*in).DeepCopy()
*out = &x
}
if in.CPULimit != nil {
in, out := &in.CPULimit, &out.CPULimit
x := (*in).DeepCopy()
*out = &x
}
if in.MemoryRequest != nil {
in, out := &in.MemoryRequest, &out.MemoryRequest
x := (*in).DeepCopy()
*out = &x
}
if in.MemoryLimit != nil {
in, out := &in.MemoryLimit, &out.MemoryLimit
x := (*in).DeepCopy()
*out = &x
}
return
}

View File

@ -137,7 +137,7 @@ ClusterName: complex.example.com
ConfigBase: memfs://clusters.example.com/complex.example.com
InstanceGroupName: master-us-test-1a
InstanceGroupRole: ControlPlane
NodeupConfigHash: UupIEUV2WSAOgV0zSE85P7DMvhpVqRYofy/yGz2MSxI=
NodeupConfigHash: pZ2dctozuSDU7ms2w/1CZhWRymbSevx0Huj66BGp0ak=
__EOF_KUBE_ENV

View File

@ -139,6 +139,8 @@ spec:
clusterCIDR: 100.96.0.0/11
clusterName: complex.example.com
configureCloudRoutes: false
cpuLimit: 500m
cpuRequest: 200m
featureGates:
CSIMigrationAWS: "true"
InTreePluginAWSUnregister: "true"
@ -146,6 +148,8 @@ spec:
leaderElection:
leaderElect: true
logLevel: 2
memoryLimit: 1000Mi
memoryRequest: 800Mi
useServiceAccountCredentials: true
kubeDNS:
cacheMaxConcurrent: 150
@ -167,6 +171,8 @@ spec:
image: registry.k8s.io/kube-proxy:v1.24.0
logLevel: 2
kubeScheduler:
cpuLimit: 500m
cpuRequest: 200m
featureGates:
CSIMigrationAWS: "true"
InTreePluginAWSUnregister: "true"
@ -174,6 +180,8 @@ spec:
leaderElection:
leaderElect: true
logLevel: 2
memoryLimit: 1000Mi
memoryRequest: 800Mi
kubelet:
anonymousAuth: false
cgroupDriver: systemd

View File

@ -243,6 +243,8 @@ ControlPlaneConfig:
clusterCIDR: 100.96.0.0/11
clusterName: complex.example.com
configureCloudRoutes: false
cpuLimit: 500m
cpuRequest: 200m
featureGates:
CSIMigrationAWS: "true"
InTreePluginAWSUnregister: "true"
@ -250,8 +252,12 @@ ControlPlaneConfig:
leaderElection:
leaderElect: true
logLevel: 2
memoryLimit: 1000Mi
memoryRequest: 800Mi
useServiceAccountCredentials: true
KubeScheduler:
cpuLimit: 500m
cpuRequest: 200m
featureGates:
CSIMigrationAWS: "true"
InTreePluginAWSUnregister: "true"
@ -259,6 +265,8 @@ ControlPlaneConfig:
leaderElection:
leaderElect: true
logLevel: 2
memoryLimit: 1000Mi
memoryRequest: 800Mi
DNSZone: Z1AFAKE1ZON3YO
EtcdClusterNames:
- main

View File

@ -48,6 +48,18 @@ spec:
cpuLimit: 500m
memoryRequest: 800Mi
memoryLimit: 1000Mi
kubeControllerManager:
concurrentHorizontalPodAustoscalerSyncs: 10
concurrentJobSyncs: 10
cpuRequest: 200m
cpuLimit: 500m
memoryRequest: 800Mi
memoryLimit: 1000Mi
kubeScheduler:
cpuRequest: 200m
cpuLimit: 500m
memoryRequest: 800Mi
memoryLimit: 1000Mi
kubelet:
anonymousAuth: false
kubernetesVersion: v1.24.0

View File

@ -25,6 +25,15 @@ spec:
- 1.1.1.0/24
- pl-44444444
channel: stable
cloudControllerManager:
concurrentNodeSyncs: 5
kubeControllerManager:
concurrentHorizontalPodAustoscalerSyncs: 10
concurrentJobSyncs: 10
cpuRequest: 200m
cpuLimit: 500m
memoryRequest: 800Mi
memoryLimit: 1000Mi
cloudProvider: aws
cloudLabels:
Owner: John Doe
@ -48,6 +57,11 @@ spec:
cpuLimit: 500m
memoryRequest: 800Mi
memoryLimit: 1000Mi
kubeScheduler:
cpuRequest: 200m
cpuLimit: 500m
memoryRequest: 800Mi
memoryLimit: 1000Mi
kubelet:
anonymousAuth: false
kubernetesVersion: v1.24.0