Skip to content

feature: add more field in preemption toleration policy #839

@googs1025

Description

@googs1025

Currently, the preemption toleration policy only has minimum-preemptable-priority and toleration-seconds.
like as follows:

apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
  name: toleration-policy-sample
  annotations:
    preemption-toleration.scheduling.x-k8s.io/minimum-preemptable-priority: "10000"
    preemption-toleration.scheduling.x-k8s.io/toleration-seconds: "3600"
value: 8000

Now I want to add more fields:
like:
We can exclude Pods in a specific namespace from being preempted
preemption-toleration.scheduling.x-k8s.io/excluded-namespaces: "kube-system,default,critical-ns"

Maybe there are other filters?

Metadata

Metadata

Assignees

Labels

kind/featureCategorizes issue or PR as related to a new feature.lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions