Bump QPS limits for Kubelet

This commit is contained in:
Wojciech Tyczyński 2023-02-28 09:30:52 +01:00
parent 931e07de16
commit 760acbbbe3
3 changed files with 26 additions and 26 deletions

View File

@ -96,10 +96,10 @@ func SetDefaults_KubeletConfiguration(obj *kubeletconfigv1beta1.KubeletConfigura
obj.RegistryBurst = 10
}
if obj.EventRecordQPS == nil {
obj.EventRecordQPS = utilpointer.Int32(5)
obj.EventRecordQPS = utilpointer.Int32(50)
}
if obj.EventBurst == 0 {
obj.EventBurst = 10
obj.EventBurst = 100
}
if obj.EnableDebuggingHandlers == nil {
obj.EnableDebuggingHandlers = utilpointer.Bool(true)
@ -200,10 +200,10 @@ func SetDefaults_KubeletConfiguration(obj *kubeletconfigv1beta1.KubeletConfigura
obj.ContentType = "application/vnd.kubernetes.protobuf"
}
if obj.KubeAPIQPS == nil {
obj.KubeAPIQPS = utilpointer.Int32(5)
obj.KubeAPIQPS = utilpointer.Int32(50)
}
if obj.KubeAPIBurst == 0 {
obj.KubeAPIBurst = 10
obj.KubeAPIBurst = 100
}
if obj.SerializeImagePulls == nil {
// SerializeImagePulls is default to true when MaxParallelImagePulls

View File

@ -65,8 +65,8 @@ func TestSetDefaultsKubeletConfiguration(t *testing.T) {
},
RegistryPullQPS: utilpointer.Int32(5),
RegistryBurst: 10,
EventRecordQPS: utilpointer.Int32(5),
EventBurst: 10,
EventRecordQPS: utilpointer.Int32(50),
EventBurst: 100,
EnableDebuggingHandlers: utilpointer.Bool(true),
HealthzPort: utilpointer.Int32(10248),
HealthzBindAddress: "127.0.0.1",
@ -97,8 +97,8 @@ func TestSetDefaultsKubeletConfiguration(t *testing.T) {
NodeStatusMaxImages: utilpointer.Int32(50),
MaxOpenFiles: 1000000,
ContentType: "application/vnd.kubernetes.protobuf",
KubeAPIQPS: utilpointer.Int32(5),
KubeAPIBurst: 10,
KubeAPIQPS: utilpointer.Int32(50),
KubeAPIBurst: 100,
SerializeImagePulls: utilpointer.Bool(true),
MaxParallelImagePulls: nil,
EvictionHard: nil,
@ -279,7 +279,7 @@ func TestSetDefaultsKubeletConfiguration(t *testing.T) {
RegistryPullQPS: utilpointer.Int32(0),
RegistryBurst: 10,
EventRecordQPS: utilpointer.Int32(0),
EventBurst: 10,
EventBurst: 100,
EnableDebuggingHandlers: utilpointer.Bool(false),
HealthzPort: utilpointer.Int32(0),
HealthzBindAddress: "127.0.0.1",
@ -314,7 +314,7 @@ func TestSetDefaultsKubeletConfiguration(t *testing.T) {
MaxOpenFiles: 1000000,
ContentType: "application/vnd.kubernetes.protobuf",
KubeAPIQPS: utilpointer.Int32(0),
KubeAPIBurst: 10,
KubeAPIBurst: 100,
SerializeImagePulls: utilpointer.Bool(false),
MaxParallelImagePulls: nil,
EvictionHard: map[string]string{},
@ -674,8 +674,8 @@ func TestSetDefaultsKubeletConfiguration(t *testing.T) {
},
RegistryPullQPS: utilpointer.Int32(5),
RegistryBurst: 10,
EventRecordQPS: utilpointer.Int32(5),
EventBurst: 10,
EventRecordQPS: utilpointer.Int32(50),
EventBurst: 100,
EnableDebuggingHandlers: utilpointer.Bool(true),
HealthzPort: utilpointer.Int32(10248),
HealthzBindAddress: "127.0.0.1",
@ -706,8 +706,8 @@ func TestSetDefaultsKubeletConfiguration(t *testing.T) {
NodeStatusMaxImages: utilpointer.Int32(50),
MaxOpenFiles: 1000000,
ContentType: "application/vnd.kubernetes.protobuf",
KubeAPIQPS: utilpointer.Int32(5),
KubeAPIBurst: 10,
KubeAPIQPS: utilpointer.Int32(50),
KubeAPIBurst: 100,
SerializeImagePulls: utilpointer.Bool(true),
MaxParallelImagePulls: nil,
EvictionHard: nil,
@ -763,8 +763,8 @@ func TestSetDefaultsKubeletConfiguration(t *testing.T) {
},
RegistryPullQPS: utilpointer.Int32Ptr(5),
RegistryBurst: 10,
EventRecordQPS: utilpointer.Int32Ptr(5),
EventBurst: 10,
EventRecordQPS: utilpointer.Int32Ptr(50),
EventBurst: 100,
EnableDebuggingHandlers: utilpointer.Bool(true),
HealthzPort: utilpointer.Int32Ptr(10248),
HealthzBindAddress: "127.0.0.1",
@ -795,8 +795,8 @@ func TestSetDefaultsKubeletConfiguration(t *testing.T) {
NodeStatusMaxImages: utilpointer.Int32Ptr(50),
MaxOpenFiles: 1000000,
ContentType: "application/vnd.kubernetes.protobuf",
KubeAPIQPS: utilpointer.Int32Ptr(5),
KubeAPIBurst: 10,
KubeAPIQPS: utilpointer.Int32Ptr(50),
KubeAPIBurst: 100,
SerializeImagePulls: utilpointer.Bool(false),
MaxParallelImagePulls: utilpointer.Int32(5),
EvictionHard: nil,
@ -852,8 +852,8 @@ func TestSetDefaultsKubeletConfiguration(t *testing.T) {
},
RegistryPullQPS: utilpointer.Int32Ptr(5),
RegistryBurst: 10,
EventRecordQPS: utilpointer.Int32Ptr(5),
EventBurst: 10,
EventRecordQPS: utilpointer.Int32Ptr(50),
EventBurst: 100,
EnableDebuggingHandlers: utilpointer.Bool(true),
HealthzPort: utilpointer.Int32Ptr(10248),
HealthzBindAddress: "127.0.0.1",
@ -884,8 +884,8 @@ func TestSetDefaultsKubeletConfiguration(t *testing.T) {
NodeStatusMaxImages: utilpointer.Int32Ptr(50),
MaxOpenFiles: 1000000,
ContentType: "application/vnd.kubernetes.protobuf",
KubeAPIQPS: utilpointer.Int32Ptr(5),
KubeAPIBurst: 10,
KubeAPIQPS: utilpointer.Int32Ptr(50),
KubeAPIBurst: 100,
SerializeImagePulls: utilpointer.Bool(true),
MaxParallelImagePulls: utilpointer.Int32(1),
EvictionHard: nil,

View File

@ -205,14 +205,14 @@ type KubeletConfiguration struct {
RegistryBurst int32 `json:"registryBurst,omitempty"`
// eventRecordQPS is the maximum event creations per second. If 0, there
// is no limit enforced. The value cannot be a negative number.
// Default: 5
// Default: 50
// +optional
EventRecordQPS *int32 `json:"eventRecordQPS,omitempty"`
// eventBurst is the maximum size of a burst of event creations, temporarily
// allows event creations to burst to this number, while still not exceeding
// eventRecordQPS. This field canot be a negative number and it is only used
// when eventRecordQPS > 0.
// Default: 10
// Default: 100
// +optional
EventBurst int32 `json:"eventBurst,omitempty"`
// enableDebuggingHandlers enables server endpoints for log access
@ -467,12 +467,12 @@ type KubeletConfiguration struct {
// +optional
ContentType string `json:"contentType,omitempty"`
// kubeAPIQPS is the QPS to use while talking with kubernetes apiserver.
// Default: 5
// Default: 50
// +optional
KubeAPIQPS *int32 `json:"kubeAPIQPS,omitempty"`
// kubeAPIBurst is the burst to allow while talking with kubernetes API server.
// This field cannot be a negative number.
// Default: 10
// Default: 100
// +optional
KubeAPIBurst int32 `json:"kubeAPIBurst,omitempty"`
// serializeImagePulls when enabled, tells the Kubelet to pull images one