Merge pull request #116121 from wojtek-t/bump_qps_kubelet

Bump default API QPS limits for Kubelet
This commit is contained in:
Kubernetes Prow Robot 2023-03-07 15:08:43 -08:00 committed by GitHub
commit fe6a51ed4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 34 additions and 34 deletions

View File

@ -57435,14 +57435,14 @@ func schema_k8sio_kubelet_config_v1beta1_KubeletConfiguration(ref common.Referen
}, },
"eventRecordQPS": { "eventRecordQPS": {
SchemaProps: spec.SchemaProps{ SchemaProps: spec.SchemaProps{
Description: "eventRecordQPS is the maximum event creations per second. If 0, there is no limit enforced. The value cannot be a negative number. Default: 5", Description: "eventRecordQPS is the maximum event creations per second. If 0, there is no limit enforced. The value cannot be a negative number. Default: 50",
Type: []string{"integer"}, Type: []string{"integer"},
Format: "int32", Format: "int32",
}, },
}, },
"eventBurst": { "eventBurst": {
SchemaProps: spec.SchemaProps{ SchemaProps: spec.SchemaProps{
Description: "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", Description: "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: 100",
Type: []string{"integer"}, Type: []string{"integer"},
Format: "int32", Format: "int32",
}, },
@ -57756,14 +57756,14 @@ func schema_k8sio_kubelet_config_v1beta1_KubeletConfiguration(ref common.Referen
}, },
"kubeAPIQPS": { "kubeAPIQPS": {
SchemaProps: spec.SchemaProps{ SchemaProps: spec.SchemaProps{
Description: "kubeAPIQPS is the QPS to use while talking with kubernetes apiserver. Default: 5", Description: "kubeAPIQPS is the QPS to use while talking with kubernetes apiserver. Default: 50",
Type: []string{"integer"}, Type: []string{"integer"},
Format: "int32", Format: "int32",
}, },
}, },
"kubeAPIBurst": { "kubeAPIBurst": {
SchemaProps: spec.SchemaProps{ SchemaProps: spec.SchemaProps{
Description: "kubeAPIBurst is the burst to allow while talking with kubernetes API server. This field cannot be a negative number. Default: 10", Description: "kubeAPIBurst is the burst to allow while talking with kubernetes API server. This field cannot be a negative number. Default: 100",
Type: []string{"integer"}, Type: []string{"integer"},
Format: "int32", Format: "int32",
}, },

View File

@ -31,8 +31,8 @@ enableServer: true
enableSystemLogHandler: true enableSystemLogHandler: true
enforceNodeAllocatable: enforceNodeAllocatable:
- pods - pods
eventBurst: 10 eventBurst: 100
eventRecordQPS: 5 eventRecordQPS: 50
evictionPressureTransitionPeriod: 5m0s evictionPressureTransitionPeriod: 5m0s
failSwapOn: true failSwapOn: true
fileCheckFrequency: 20s fileCheckFrequency: 20s
@ -46,8 +46,8 @@ imageMinimumGCAge: 2m0s
iptablesDropBit: 15 iptablesDropBit: 15
iptablesMasqueradeBit: 14 iptablesMasqueradeBit: 14
kind: KubeletConfiguration kind: KubeletConfiguration
kubeAPIBurst: 10 kubeAPIBurst: 100
kubeAPIQPS: 5 kubeAPIQPS: 50
localStorageCapacityIsolation: true localStorageCapacityIsolation: true
logging: logging:
flushFrequency: 5000000000 flushFrequency: 5000000000

View File

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

View File

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

View File

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