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
722 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
• 59,230 points

Related Questions In Kubernetes

+2 votes
1 answer
0 votes
2 answers

How to recover pods data if you lose them?

POD does t maintain state and when ...READ MORE

answered Feb 15, 2020 in Kubernetes by RR
3,059 views
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,460 points
691 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
1,357 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
15,571 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,059 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
• 59,230 points
1,110 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP