Open lengrongfu opened 1 month ago
/assign
I have two ideas:
i think the problem of pod creation failing after a webhook crash is a common problem with webhooks. If you want other pods in the cluster not to be affected, you can modify the failurePolicy field of the webhook. refer to: https://kubernetes.io/docs/reference/access-authn-authz/extensible-admission-controllers/
The first solution change failurePolicy
to ignore is ok.
You can also disable the webhook don't need.
Just modify it in enabled_admissions: "/jobs/mutate,/jobs/validate,/podgroups/mutate,/pods/validate,/pods/mutate,/queues/mutate,/queues/validate"
I don't think the solution of configuring failurePolicy=Ignore is very good. I suggest that we can configure matchConditions. I have verified that it works well.
matchConditions:
- expression: object.spec.schedulerName == 'volcano'
name: scheduler
I think the key question is whether we need to set this feature as the default configuration for helm installation. Is this what you mean?
I think the key question is whether we need to set this feature as the default configuration for helm installation. Is this what you mean?
yes.
I don't think the solution of configuring failurePolicy=Ignore is very good. I suggest that we can configure matchConditions. I have verified that it works well.
matchConditions: - expression: object.spec.schedulerName == 'volcano' name: scheduler
It's ok to me, but change failurePolicy to Ignore is also needed: )
/good-first-issue
@Monokaix: This request has been marked as suitable for new contributors.
Please ensure the request meets the requirements listed here.
If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-good-first-issue
command.
Description
When volcano-admission pod crash, It will affect me creating other pods.
Steps to reproduce the issue
Describe the results you received and expected
received results
expected results: can create pod success.
What version of Volcano are you using?
1.9.0
Any other relevant information
No response