Reputation: 859
This page describes how to make a non-preempting priority class in Kubernetes:
apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
name: high-priority-nonpreempting
value: 1000000
preemptionPolicy: Never
globalDefault: false
description: "This priority class will not cause other pods to be preempted."
It is very clear that it what it does is to prevent the jobs with this priority class from preempting others. What if I want the opposite ? Is there an option in Priority Class (or jobs directly) to create Jobs that cannot be preempted ?
Upvotes: 1
Views: 378