mirror of https://github.com/kubernetes/kops.git
Merge pull request #17357 from succa/feature/goaway-chance-apiserver
add goaway-chance parameter for kube-apiserver
This commit is contained in:
commit
732397b199
|
@ -2046,6 +2046,11 @@ spec:
|
|||
description: FeatureGates is set of key=value pairs that describe
|
||||
feature gates for alpha/experimental features.
|
||||
type: object
|
||||
goawayChance:
|
||||
description: GoawayChance is the probability that send a GOAWAY
|
||||
to HTTP/2 clients. Default to 0, means never send GOAWAY. Max
|
||||
is 0.02 to prevent break the apiserver.
|
||||
type: string
|
||||
http2MaxStreamsPerConnection:
|
||||
description: HTTP2MaxStreamsPerConnection sets the limit that
|
||||
the server gives to clients for the maximum number of streams
|
||||
|
|
|
@ -470,6 +470,8 @@ type KubeAPIServerConfig struct {
|
|||
RequestheaderAllowedNames []string `json:"requestheaderAllowedNames,omitempty" flag:"requestheader-allowed-names"`
|
||||
// FeatureGates is set of key=value pairs that describe feature gates for alpha/experimental features.
|
||||
FeatureGates map[string]string `json:"featureGates,omitempty" flag:"feature-gates"`
|
||||
// GoawayChance is the probability that send a GOAWAY to HTTP/2 clients. Default to 0, means never send GOAWAY. Max is 0.02 to prevent break the apiserver.
|
||||
GoawayChance string `json:"goawayChance,omitempty" flag:"goaway-chance"`
|
||||
// MaxRequestsInflight The maximum number of non-mutating requests in flight at a given time.
|
||||
MaxRequestsInflight int32 `json:"maxRequestsInflight,omitempty" flag:"max-requests-inflight" flag-empty:"0"`
|
||||
// MaxMutatingRequestsInflight The maximum number of mutating requests in flight at a given time. Defaults to 200
|
||||
|
|
|
@ -477,6 +477,8 @@ type KubeAPIServerConfig struct {
|
|||
RequestheaderAllowedNames []string `json:"requestheaderAllowedNames,omitempty" flag:"requestheader-allowed-names"`
|
||||
// FeatureGates is set of key=value pairs that describe feature gates for alpha/experimental features.
|
||||
FeatureGates map[string]string `json:"featureGates,omitempty" flag:"feature-gates"`
|
||||
// GoawayChance is the probability that send a GOAWAY to HTTP/2 clients. Default to 0, means never send GOAWAY. Max is 0.02 to prevent break the apiserver.
|
||||
GoawayChance string `json:"goawayChance,omitempty" flag:"goaway-chance"`
|
||||
// MaxRequestsInflight The maximum number of non-mutating requests in flight at a given time.
|
||||
MaxRequestsInflight int32 `json:"maxRequestsInflight,omitempty" flag:"max-requests-inflight" flag-empty:"0"`
|
||||
// MaxMutatingRequestsInflight The maximum number of mutating requests in flight at a given time. Defaults to 200
|
||||
|
|
|
@ -5046,6 +5046,7 @@ func autoConvert_v1alpha2_KubeAPIServerConfig_To_kops_KubeAPIServerConfig(in *Ku
|
|||
out.RequestheaderClientCAFile = in.RequestheaderClientCAFile
|
||||
out.RequestheaderAllowedNames = in.RequestheaderAllowedNames
|
||||
out.FeatureGates = in.FeatureGates
|
||||
out.GoawayChance = in.GoawayChance
|
||||
out.MaxRequestsInflight = in.MaxRequestsInflight
|
||||
out.MaxMutatingRequestsInflight = in.MaxMutatingRequestsInflight
|
||||
out.HTTP2MaxStreamsPerConnection = in.HTTP2MaxStreamsPerConnection
|
||||
|
@ -5163,6 +5164,7 @@ func autoConvert_kops_KubeAPIServerConfig_To_v1alpha2_KubeAPIServerConfig(in *ko
|
|||
out.RequestheaderClientCAFile = in.RequestheaderClientCAFile
|
||||
out.RequestheaderAllowedNames = in.RequestheaderAllowedNames
|
||||
out.FeatureGates = in.FeatureGates
|
||||
out.GoawayChance = in.GoawayChance
|
||||
out.MaxRequestsInflight = in.MaxRequestsInflight
|
||||
out.MaxMutatingRequestsInflight = in.MaxMutatingRequestsInflight
|
||||
out.HTTP2MaxStreamsPerConnection = in.HTTP2MaxStreamsPerConnection
|
||||
|
|
|
@ -468,6 +468,8 @@ type KubeAPIServerConfig struct {
|
|||
RequestheaderAllowedNames []string `json:"requestheaderAllowedNames,omitempty" flag:"requestheader-allowed-names"`
|
||||
// FeatureGates is set of key=value pairs that describe feature gates for alpha/experimental features.
|
||||
FeatureGates map[string]string `json:"featureGates,omitempty" flag:"feature-gates"`
|
||||
// GoawayChance is the probability that send a GOAWAY to HTTP/2 clients. Default to 0, means never send GOAWAY. Max is 0.02 to prevent break the apiserver.
|
||||
GoawayChance string `json:"goawayChance,omitempty" flag:"goaway-chance"`
|
||||
// MaxRequestsInflight The maximum number of non-mutating requests in flight at a given time.
|
||||
MaxRequestsInflight int32 `json:"maxRequestsInflight,omitempty" flag:"max-requests-inflight" flag-empty:"0"`
|
||||
// MaxMutatingRequestsInflight The maximum number of mutating requests in flight at a given time. Defaults to 200
|
||||
|
|
|
@ -5442,6 +5442,7 @@ func autoConvert_v1alpha3_KubeAPIServerConfig_To_kops_KubeAPIServerConfig(in *Ku
|
|||
out.RequestheaderClientCAFile = in.RequestheaderClientCAFile
|
||||
out.RequestheaderAllowedNames = in.RequestheaderAllowedNames
|
||||
out.FeatureGates = in.FeatureGates
|
||||
out.GoawayChance = in.GoawayChance
|
||||
out.MaxRequestsInflight = in.MaxRequestsInflight
|
||||
out.MaxMutatingRequestsInflight = in.MaxMutatingRequestsInflight
|
||||
out.HTTP2MaxStreamsPerConnection = in.HTTP2MaxStreamsPerConnection
|
||||
|
@ -5559,6 +5560,7 @@ func autoConvert_kops_KubeAPIServerConfig_To_v1alpha3_KubeAPIServerConfig(in *ko
|
|||
out.RequestheaderClientCAFile = in.RequestheaderClientCAFile
|
||||
out.RequestheaderAllowedNames = in.RequestheaderAllowedNames
|
||||
out.FeatureGates = in.FeatureGates
|
||||
out.GoawayChance = in.GoawayChance
|
||||
out.MaxRequestsInflight = in.MaxRequestsInflight
|
||||
out.MaxMutatingRequestsInflight = in.MaxMutatingRequestsInflight
|
||||
out.HTTP2MaxStreamsPerConnection = in.HTTP2MaxStreamsPerConnection
|
||||
|
|
Loading…
Reference in New Issue