Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for PodPriority (0.35 sec)

  1. pkg/scheduler/util/utils.go

    	maxPriority := corev1helpers.PodPriority(victims.Pods[0])
    
    	for _, pod := range victims.Pods {
    		if podPriority := corev1helpers.PodPriority(pod); podPriority == maxPriority {
    			if podStartTime := GetPodStartTime(pod); podStartTime.Before(earliestPodStartTime) {
    				earliestPodStartTime = podStartTime
    			}
    		} else if podPriority > maxPriority {
    			maxPriority = podPriority
    			earliestPodStartTime = GetPodStartTime(pod)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Sep 21 01:40:44 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  2. pkg/kubeapiserver/options/plugins.go

    	"k8s.io/kubernetes/plugin/pkg/admission/nodetaint"
    	"k8s.io/kubernetes/plugin/pkg/admission/podnodeselector"
    	"k8s.io/kubernetes/plugin/pkg/admission/podtolerationrestriction"
    	podpriority "k8s.io/kubernetes/plugin/pkg/admission/priority"
    	"k8s.io/kubernetes/plugin/pkg/admission/runtimeclass"
    	"k8s.io/kubernetes/plugin/pkg/admission/security/podsecurity"
    	"k8s.io/kubernetes/plugin/pkg/admission/serviceaccount"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 17:20:46 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/plugins/queuesort/priority_sort.go

    // It sorts pods based on their priority. When priorities are equal, it uses
    // PodQueueInfo.timestamp.
    func (pl *PrioritySort) Less(pInfo1, pInfo2 *framework.QueuedPodInfo) bool {
    	p1 := corev1helpers.PodPriority(pInfo1.Pod)
    	p2 := corev1helpers.PodPriority(pInfo2.Pod)
    	return (p1 > p2) || (p1 == p2 && pInfo1.Timestamp.Before(pInfo2.Timestamp))
    }
    
    // New initializes a new plugin and returns it.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 20 09:49:54 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/defaultpreemption/default_preemption.go

    		}
    		return nil
    	}
    	// As the first step, remove all the lower priority pods from the node and
    	// check if the given pod can be scheduled.
    	podPriority := corev1helpers.PodPriority(pod)
    	for _, pi := range nodeInfo.Pods {
    		if corev1helpers.PodPriority(pi.Pod) < podPriority {
    			potentialVictims = append(potentialVictims, pi)
    			if err := removePod(pi); err != nil {
    				return nil, 0, framework.AsStatus(err)
    			}
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Nov 25 19:36:04 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  5. pkg/kubelet/types/pod_update_test.go

    func getTestPod(annotations map[string]string, podPriority *int32, priorityClassName string) *v1.Pod {
    	pod := v1.Pod{
    		TypeMeta: metav1.TypeMeta{
    			Kind:       "Pod",
    			APIVersion: "v1",
    		},
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "foo",
    			Namespace: "default",
    		},
    	}
    	// Set pod Priority in Spec if exists
    	if podPriority != nil {
    		pod.Spec = v1.PodSpec{
    			Priority: podPriority,
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 21 08:20:50 UTC 2023
    - 10.4K bytes
    - Viewed (0)
  6. pkg/scheduler/testing/framework/fake_extender.go

    		nodeInfoCopy.AddPod(ap)
    	}
    	// As the first step, remove all the lower priority pods from the node and
    	// check if the given pod can be scheduled.
    	podPriority := corev1helpers.PodPriority(pod)
    	for _, p := range nodeInfoCopy.Pods {
    		if corev1helpers.PodPriority(p.Pod) < podPriority {
    			potentialVictims = append(potentialVictims, p.Pod)
    			if err := removePod(p.Pod); err != nil {
    				return nil, 0, false, err
    			}
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 19:07:19 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  7. pkg/scheduler/framework/preemption/preemption.go

    	podInfos := pn.NominatedPodsForNode(nodeName)
    
    	if len(podInfos) == 0 {
    		return nil
    	}
    
    	var lowerPriorityPods []*v1.Pod
    	podPriority := corev1helpers.PodPriority(pod)
    	for _, pi := range podInfos {
    		if corev1helpers.PodPriority(pi.Pod) < podPriority {
    			lowerPriorityPods = append(lowerPriorityPods, pi.Pod)
    		}
    	}
    	return lowerPriorityPods
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 25.1K bytes
    - Viewed (0)
  8. pkg/kubelet/eviction/helpers.go

    	return ms.cmp[k](p1, p2) < 0
    }
    
    // priority compares pods by Priority, if priority is enabled.
    func priority(p1, p2 *v1.Pod) int {
    	priority1 := corev1helpers.PodPriority(p1)
    	priority2 := corev1helpers.PodPriority(p2)
    	if priority1 == priority2 {
    		return 0
    	}
    	if priority1 > priority2 {
    		return 1
    	}
    	return -1
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 18:46:33 UTC 2023
    - 53.6K bytes
    - Viewed (0)
  9. pkg/scheduler/framework/runtime/framework.go

    		return false, state, nodeInfo, nil
    	}
    	nodeInfoOut := nodeInfo.Snapshot()
    	stateOut := state.Clone()
    	podsAdded := false
    	for _, pi := range nominatedPodInfos {
    		if corev1.PodPriority(pi.Pod) >= corev1.PodPriority(pod) && pi.Pod.UID != pod.UID {
    			nodeInfoOut.AddPodInfo(pi)
    			status := fh.RunPreFilterExtensionAddPod(ctx, stateOut, pod, pi, nodeInfoOut)
    			if !status.IsSuccess() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 09:07:27 UTC 2024
    - 60.9K bytes
    - Viewed (0)
  10. CHANGELOG/CHANGELOG-1.11.md

    can now request priority classes that compete with and/or cause preemption of critical system pods that are already running. If that is not desired, disable the PodPriority feature by setting `--feature-gates=PodPriority=false` on the kube-apiserver, kube-scheduler, and kubelet components before upgrading to 1.11. Disabling the PodPriority feature limits [critical pods](https://kubernetes.io/docs/tasks/administer-cluster/guaranteed-scheduling-critical-addon-pods/#marking-pod-as-critical-when-priorites-are-enabled)...
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 06 06:04:15 UTC 2020
    - 328.4K bytes
    - Viewed (0)
Back to top