mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
set PodMaxUnschedulableQDuration as 5 min
This commit is contained in:
parent
41b29e6542
commit
e772202e95
@ -51,5 +51,5 @@ func (o *DeprecatedOptions) AddFlags(fs *pflag.FlagSet) {
|
|||||||
fs.Int32Var(&o.Burst, "kube-api-burst", 100, "DEPRECATED: burst to use while talking with kubernetes apiserver. This parameter is ignored if a config file is specified in --config.")
|
fs.Int32Var(&o.Burst, "kube-api-burst", 100, "DEPRECATED: burst to use while talking with kubernetes apiserver. This parameter is ignored if a config file is specified in --config.")
|
||||||
fs.StringVar(&o.ResourceNamespace, "lock-object-namespace", "kube-system", "DEPRECATED: define the namespace of the lock object. Will be removed in favor of leader-elect-resource-namespace. This parameter is ignored if a config file is specified in --config.")
|
fs.StringVar(&o.ResourceNamespace, "lock-object-namespace", "kube-system", "DEPRECATED: define the namespace of the lock object. Will be removed in favor of leader-elect-resource-namespace. This parameter is ignored if a config file is specified in --config.")
|
||||||
fs.StringVar(&o.ResourceName, "lock-object-name", "kube-scheduler", "DEPRECATED: define the name of the lock object. Will be removed in favor of leader-elect-resource-name. This parameter is ignored if a config file is specified in --config.")
|
fs.StringVar(&o.ResourceName, "lock-object-name", "kube-scheduler", "DEPRECATED: define the name of the lock object. Will be removed in favor of leader-elect-resource-name. This parameter is ignored if a config file is specified in --config.")
|
||||||
fs.DurationVar(&o.PodMaxUnschedulableQDuration, "pod-max-unschedulableq-duration", 60*time.Second, "DEPRECATED: the maximum time a pod can stay in unschedulableQ. If a pod stays in unschedulableQ for longer than this value, the pod will be moved from unschedulableQ to backoffQ or activeQ. This flag is deprecated and will be removed in 1.26")
|
fs.DurationVar(&o.PodMaxUnschedulableQDuration, "pod-max-unschedulableq-duration", 5*time.Minute, "DEPRECATED: the maximum time a pod can stay in unschedulableQ. If a pod stays in unschedulableQ for longer than this value, the pod will be moved from unschedulableQ to backoffQ or activeQ. This flag is deprecated and will be removed in 1.26")
|
||||||
}
|
}
|
||||||
|
@ -80,7 +80,7 @@ func NewOptions() *Options {
|
|||||||
Authentication: apiserveroptions.NewDelegatingAuthenticationOptions(),
|
Authentication: apiserveroptions.NewDelegatingAuthenticationOptions(),
|
||||||
Authorization: apiserveroptions.NewDelegatingAuthorizationOptions(),
|
Authorization: apiserveroptions.NewDelegatingAuthorizationOptions(),
|
||||||
Deprecated: &DeprecatedOptions{
|
Deprecated: &DeprecatedOptions{
|
||||||
PodMaxUnschedulableQDuration: 60 * time.Second,
|
PodMaxUnschedulableQDuration: 5 * time.Minute,
|
||||||
},
|
},
|
||||||
LeaderElection: &componentbaseconfig.LeaderElectionConfiguration{
|
LeaderElection: &componentbaseconfig.LeaderElectionConfiguration{
|
||||||
LeaderElect: true,
|
LeaderElect: true,
|
||||||
|
@ -49,9 +49,9 @@ const (
|
|||||||
// DefaultPodMaxUnschedulableQDuration is the default value for the maximum
|
// DefaultPodMaxUnschedulableQDuration is the default value for the maximum
|
||||||
// time a pod can stay in unschedulableQ. If a pod stays in unschedulableQ
|
// time a pod can stay in unschedulableQ. If a pod stays in unschedulableQ
|
||||||
// for longer than this value, the pod will be moved from unschedulableQ to
|
// for longer than this value, the pod will be moved from unschedulableQ to
|
||||||
// backoffQ or activeQ. If this value is empty, the default value (60s)
|
// backoffQ or activeQ. If this value is empty, the default value (5min)
|
||||||
// will be used.
|
// will be used.
|
||||||
DefaultPodMaxUnschedulableQDuration time.Duration = 60 * time.Second
|
DefaultPodMaxUnschedulableQDuration time.Duration = 5 * time.Minute
|
||||||
|
|
||||||
queueClosed = "scheduling queue is closed"
|
queueClosed = "scheduling queue is closed"
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user