Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ludat opened this issue May 3, 2024 · 1 comment
Assignees
Labels
kind/bug Something isn't working

Comments

@ludat
Copy link

ludat commented May 3, 2024

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 ludat added the kind/bug Something isn't working label May 3, 2024
@furykerry
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants