kruise icon indicating copy to clipboard operation
kruise copied to clipboard

[BUG] Creating a WorkloadSpread with a patch for the priorityClassName fails

Open ludat opened this issue 9 months ago • 3 comments

What happened:

Creating a WorloadSpread that patches .spec.priorityClassName for a deployment fails on the k8s api with:

Error creating: pods "*******-prod-app-79644979d8-" is forbidden: the integer value of priority (0) must not be provided in pod spec; priority admission controller computed 1000000000 from the given PriorityClass name

What you expected to happen:

The pods are distributed according to the WorkloadSpread

How to reproduce it (as minimally and precisely as possible):

I don't have a minimal example yet but I'll try to get it next week

Anything else we need to know?:

Not sure if it's relevant but I'm on GKE

Environment:

  • Kruise version: v1.6.3
  • Kubernetes version (use kubectl version): v1.28.7-gke.1026000
  • Install details (e.g. helm install args):
  • Others:

ludat avatar May 03 '24 19:05 ludat

@ludat the problem may be related to the order of multiple webhooks and admission plugins. Can you patch spec.priority along with with priorityClassName?

furykerry avatar May 06 '24 02:05 furykerry

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 05 '24 10:08 stale[bot]

@furykerry I'll try to do this this week, will report back

ludat avatar Aug 08 '24 01:08 ludat