mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #90989 from ahg-g/ahg-err
Count NoNodesAvailable scheduling failure as unschedulable instead of error
This commit is contained in:
commit
e5aabaec18
@ -601,6 +601,9 @@ func (sched *Scheduler) scheduleOne(ctx context.Context) {
|
||||
// succeeds, the pod should get counted as a success the next time we try to
|
||||
// schedule it. (hopefully)
|
||||
metrics.PodScheduleFailures.Inc()
|
||||
} else if err == core.ErrNoNodesAvailable {
|
||||
// No nodes available is counted as unschedulable rather than an error.
|
||||
metrics.PodScheduleFailures.Inc()
|
||||
} else {
|
||||
klog.Errorf("error selecting node for pod: %v", err)
|
||||
metrics.PodScheduleErrors.Inc()
|
||||
|
Loading…
Reference in New Issue
Block a user