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

[question] We have an admission webhook that will inject sidecar container, error occurred #903

Closed
leason00 opened this issue Dec 26, 2022 · 1 comment
Labels
kind/question Support request or question relating to Koordinator

Comments

@leason00
Copy link
Contributor

What happened:
We have an admission webhook that will inject sidecar container.

The following error occurred while scheduling pod:

message: 'admission webhook "vpod.kb.io" denied the request: [pod.spec.containers.tether-1.resources.requests.kubernetes.io/batch-cpu: Required value: request of container tether-1 does not have resource kubernetes.io/batch-cpu, pod.spec.containers.tether-1.resources.limits.kubernetes.io/batch-cpu: Required value: limit of container tether-1 does not have resource kubernetes.io/batch-cpu, pod.spec.containers.tether-1.resources.requests.kubernetes.io/batch-memory: Required value: request of container tether-1 does not have resource kubernetes.io/batch-memory, pod.spec.containers.tether-1.resources.limits.kubernetes.io/batch-memory: Required value: limit of container tether-1 does not have resource kubernetes.io/batch-memory, pod.spec.containers.tether-2.resources.requests.kubernetes.io/batch-cpu: Required value: request of container tether-2 does not have resource kubernetes.io/batch-cpu, pod.spec.containers.tether-2.resources.limits.kubernetes.io/batch-cpu: Required value: limit of container tether-2 does not have resource kubernetes.io/batch-cpu, pod.spec.containers.tether-2.resources.requests.kubernetes.io/batch-memory: Required value: request of container tether-2 does not have resource kubernetes.io/batch-memory, pod.spec.containers.tether-2.resources.limits.kubernetes.io/batch-memory: Required value: limit of container tether-2 does not have resource kubernetes.io/batch-memory]'

It seems that when sidecarsets.apps.kruise.io is injected into the sidecar container, it will conflict with the time of Koordinator mutating pod. Have the bosses encountered this situation? is there any good way?

What you expected to happen:

Environment:

  • Koordinator version: - v1.0.0
  • Kubernetes version (use kubectl version): v1.21.7
  • docker/containerd version: containerd 1.5.0
  • OS (e.g: cat /etc/os-release): Ubuntu 20.04.4 LTS
  • Kernel (e.g. uname -a): Linux 5.10.112-11.al8.x86_64 ✨ Add NodeMetric API #1 SMP Tue May 24 16:05:50 CST 2022 x86_64 x86_64 x86_64 GNU/Linux

Anything else we need to know:

@leason00 leason00 added the kind/question Support request or question relating to Koordinator label Dec 26, 2022
@leason00
Copy link
Contributor Author

leason00 commented Jan 6, 2023

Solve the problem by modifying the webhook name, let it start with zzz, and make sure it finally executes

@leason00 leason00 closed this as completed Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Support request or question relating to Koordinator
Projects
None yet
Development

No branches or pull requests

1 participant