- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for IsNodeCriticalPod (0.23 sec)
-
pkg/kubelet/types/pod_update_test.go
pod: getTestPod(nil, nil, ""), expected: false, }, } for _, test := range tests { t.Run(test.name, func(t *testing.T) { isNodeCriticalPod := IsNodeCriticalPod(test.pod) require.Equal(t, test.expected, isNodeCriticalPod) }) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 21 08:20:50 UTC 2023 - 10.4K bytes - Viewed (0) -
pkg/kubelet/types/pod_update.go
func IsCriticalPodBasedOnPriority(priority int32) bool { return priority >= scheduling.SystemCriticalPriority } // IsNodeCriticalPod checks if the given pod is a system-node-critical func IsNodeCriticalPod(pod *v1.Pod) bool { return IsCriticalPod(pod) && (pod.Spec.PriorityClassName == scheduling.SystemNodeCritical) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jul 07 22:26:12 UTC 2023 - 6.4K bytes - Viewed (0) -
pkg/kubelet/qos/policy.go
// See https://lwn.net/Articles/391222/ for more information. func GetContainerOOMScoreAdjust(pod *v1.Pod, container *v1.Container, memoryCapacity int64) int { if types.IsNodeCriticalPod(pod) { // Only node critical pod should be the last to get killed. return guaranteedOOMScoreAdj } switch v1qos.GetPodQOS(pod) { case v1.PodQOSGuaranteed:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 10 14:49:26 UTC 2023 - 3.3K bytes - Viewed (0)