#
#  Author: Hari Sekhon
#  Date: [% DATE  #  [% DATE  # 2021-03-09 10:37:57 +0000 (Tue, 09 Mar 2021) %] %]
#
#  vim:ts=2:sts=2:sw=2:et
#
#  https://github.com/HariSekhon/Kubernetes-configs
#
#  License: see accompanying Hari Sekhon LICENSE file
#
#  If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback to help steer this or other code I publish
#
#  https://www.linkedin.com/in/HariSekhon
#

# https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/

---
apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
  name: high-priority
value: 1000000
#preemptionPolicy: Never  # set to prevent pods of this priorityClass from being preempted to make space for other pods
globalDefault: false     # if true all pods get this value instead of the default 0. Only 1 priorityClass in a cluster can be default
description: "Use for statefulsets and critical workloads to ensure they get stable node pool priority rather than scheduled on preemptible node pool"
