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
• 6,260 points
176 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
• 58,990 points

Related Questions In Kubernetes

+2 votes
1 answer
0 votes
2 answers
0 votes
1 answer

How do we list all the pods which are using the same service?

Hi, If you want to manage your pods ...READ MORE

answered Oct 5, 2020 in Kubernetes by MD
• 95,060 points
69 views
0 votes
2 answers

How can I access a service installed on Kubernetes from anywhere?

if u want to directly want to ...READ MORE

answered Jul 26, 2020 in Kubernetes by Akash Gupta
439 views
+1 vote
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
9,907 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
• 52,310 points

reshown Apr 12, 2019 by Kalgi 3,017 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
• 58,990 points
122 views