diff --git a/pkg/kubelet/qos/policy.go b/pkg/kubelet/qos/policy.go index f005fc59d50..fc428921348 100644 --- a/pkg/kubelet/qos/policy.go +++ b/pkg/kubelet/qos/policy.go @@ -27,7 +27,7 @@ const ( KubeletOOMScoreAdj int = -999 // KubeProxyOOMScoreAdj is the OOM score adjustment for kube-proxy KubeProxyOOMScoreAdj int = -999 - guaranteedOOMScoreAdj int = -998 + guaranteedOOMScoreAdj int = -997 besteffortOOMScoreAdj int = 1000 ) diff --git a/pkg/kubelet/qos/policy_test.go b/pkg/kubelet/qos/policy_test.go index deebc439783..19b2f912b4f 100644 --- a/pkg/kubelet/qos/policy_test.go +++ b/pkg/kubelet/qos/policy_test.go @@ -187,8 +187,8 @@ func TestGetContainerOOMScoreAdjust(t *testing.T) { { pod: &equalRequestLimitCPUMemory, memoryCapacity: 123456789, - lowOOMScoreAdj: -998, - highOOMScoreAdj: -998, + lowOOMScoreAdj: -997, + highOOMScoreAdj: -997, }, { pod: &cpuUnlimitedMemoryLimitedWithRequests, @@ -199,14 +199,14 @@ func TestGetContainerOOMScoreAdjust(t *testing.T) { { pod: &requestNoLimit, memoryCapacity: standardMemoryAmount, - lowOOMScoreAdj: 2, - highOOMScoreAdj: 2, + lowOOMScoreAdj: 3, + highOOMScoreAdj: 3, }, { pod: &critical, memoryCapacity: 4000000000, - lowOOMScoreAdj: -998, - highOOMScoreAdj: -998, + lowOOMScoreAdj: -997, + highOOMScoreAdj: -997, }, } for _, test := range oomTests {