-
Notifications
You must be signed in to change notification settings - Fork 81
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
Improve the handling and documentation of "resources.requests" and "resources.limits" when Pod uses SR-IOV backend #86
Comments
It should work without resource requests (e.g. asking SR-IOV Device Plugin to select VFs). In that case sriov CNI tries to assign a random VF to the Pod, if there's enough free VFs of the PF on that host. |
i have test it with 2 YAML file.
other is(failed to create pod):
the error log of kubelet is: in the all host, we have prepare the enough VF. |
It seems like a bug. Anyway, why don't you want to use resource requests? (as that is the preferred method) |
The danmnet definition as flollowing:apiVersion: danm.k8s.io/v1 apiVersion: danm.k8s.io/v1 apiVersion: danm.k8s.io/v1 |
is this a typo in your comment, or an issue in your manifest? |
i am do the test again, and the issue is same as before.
first, use below YAML to create pod:
the result is POD can't startup with below kubelet error logs:
then i use below YAML to create POD, it's working and POD is running:
|
yep, definitely there is an error in DANM code. I mean it cores, so :) but, besides improving the error handling for this scenario the problem is that I really don't think DANM, and the SR-IOV CNI should try and allocate anything on its own in a Device Plugin managed setup. So, yes, it is actually mandatory. We just need to gracefully handle this scenario within DANM code, and return an explicit error, rather than core. |
yes, agree with you, please update the README to indicate that the resource requests in POD YAML is mandatory. |
definitely. I will keep this Issue open to track both the update of the documentation, and the improvement in the error handling code |
i can find below text in the example/device_plugin_demo/sriov_pod.yaml:
so this is mandatory? i also testing it , and the result is pod can't startup without above fields
The text was updated successfully, but these errors were encountered: