how can we prioritize pods and preempt them?

0 votes
Is there a way to prioritize and preempt the pods in kubernetes? How can i achieve this?
Jul 15, 2019 in Kubernetes by Sam
• 5,970 points
133 views

1 answer to this question.

0 votes
  • A PriorityClass is a non-namespaced object that defines a mapping from a priority class name to the integer value of the priority. 

  • The name is specified in the name field of the PriorityClass object’s metadata. The value is specified in the required value field. The higher the value, the higher the priority.

  • A PriorityClass object can have any 32-bit integer value smaller than or equal to 1 billion. 

  • Larger numbers are reserved for critical system Pods that should not normally be preempted or evicted. 

  • A cluster admin should create one PriorityClass object for each such mapping that they want.

  • PriorityClass also has two optional fields: globalDefault and description

  • The globalDefault field indicates that the value of this PriorityClass should be used for Pods without a priorityClassName. 

  • Only one PriorityClass with globalDefault set to true can exist in the system. 

  • If there is no PriorityClass with globalDefault set, the priority of Pods with no priorityClassName is zero.

answered Jul 15, 2019 by Sirajul
• 55,640 points

Related Questions In Kubernetes

+1 vote
1 answer
0 votes
2 answers
0 votes
2 answers
0 votes
1 answer
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17, 2019 in Others by anonymous
7,636 views
+4 votes
1 answer

Installing Web UI (Dashboard):kubernetes-dashboard on main Ubuntu 16.04.6 LTS (Xenial Xerus) server

Follow these steps: $ kubeadm reset $ kubeadm init ...READ MORE

answered Apr 11, 2019 in Kubernetes by Kalgi
• 51,890 points

reshown Apr 12, 2019 by Kalgi 2,248 views
0 votes
1 answer

How can i get all the pods on a node?

You can use the following command to ...READ MORE

answered Jul 12, 2019 in Kubernetes by Sirajul
• 55,640 points
75 views