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 in Kubernetes by Sam
• 1,460 points
76 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 by Sirajul
• 16,640 points

Related Questions In Kubernetes

0 votes
1 answer

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

I have followed the link which you have ...READ MORE

answered Jul 23, 2018 in Kubernetes by Atul
• 10,240 points
114 views
0 votes
1 answer
0 votes
1 answer
+7 votes
4 answers

How are ClusterIP, NodePort and LoadBalancer different from each other?

ClusterIP ClusterIP accesses the services through proxy. ClusterIP ...READ MORE

answered Sep 10, 2018 in Kubernetes by Nilesh
• 6,900 points
3,655 views
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 in Others by anonymous
1,570 views
+3 votes
1 answer
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 in Kubernetes by Sirajul
• 16,640 points
30 views