poniedziałek, 3 grudnia 2018

Pod priorities

As number of apps running on Openshift is growing you might want to set priorities for one apps over other to instruct scheduler which apps should be deployed first and evicted last.

In Openshift Conatiner Platform 3.11 new feature Pod Priority and Preemption has been introduced to solve this challenge. It is quite simple: first you can create your own priority classes or use default ones. Secondly you need to configure your pod with class you want to use:

apiVersion: v1
kind: Pod
...
spec:
  containers:
  ...
  priorityClassName: high-priority

Check this docs for more details how to set pod priorities up.