changing Pod priority without restarting the Pod? changing Pod priority without restarting the Pod? kubernetes kubernetes

changing Pod priority without restarting the Pod?


Priority values are applied to a pod based on the priority value of the PriorityClass assigned to their deployment at the time that the pod is scheduled. Any changes made to the PriorityClass will not be applied to pods which have already been scheduled, so you would have to redeploy the pod for the priority to take effect anyway.


As far I know,

Pod priority will work on when pod is getting scheduled.

  1. First you need to create PriorityClasses

  2. Create Pod with priorityClassName and mention priorityclass in pod definition.

If you are trying to add priority to already scheduled pod I will not work.

For reference: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/#pod-priority