-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Enable CDI in containerd configuration #2100
base: main
Are you sure you want to change the base?
Conversation
d3ecb51
to
5657448
Compare
Signed-off-by: Davanum Srinivas <[email protected]>
5657448
to
567ee65
Compare
@cartermckinnon does this look ok to you? |
@dims sorry, catching up on this one. I don't know in detail what this option enables, and I'm hesitant to switch it on in 1.7.x until the early adopters bake it a bit. IIUC this won't be functional for DRA on EKS anyway until that feature is default on (in 1.33, TBD)? |
@cartermckinnon you can read about it here - https://github.com/cncf-tags/container-device-interface yes 1.33 is targetted for DRA/Beta to be enabled by default. |
Ah thanks! I'm mostly concerned about what is toggled in the containerd internals, e.g. what if the It looks like those errors are not currently surfaced here, but that's an impl detail: https://github.com/cncf-tags/container-device-interface/blob/4149a8a524dfe96686d97789833cc78f61eb6631/pkg/cdi/cache.go#L102 This part looks safe, if the CRI spec doesn't have CDI devices or annotations, it's a no-op: https://github.com/containerd/containerd/blob/2ab62acd6379cda100b5af7e3e0b65877359c8b1/internal/cri/server/container_create_linux.go#L124 I'm on board with enabling it for 1.32 for now, since we'll need it in 1.33 for DRA |
yep! @austinvazquez sounds about right? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dims, yep this looks kosher to me. Double checked sandbox server is having the same implementation as CRI server here as well.
thanks @austinvazquez |
enable_cdi = true
is set to true in containerd 2.0:containerd/containerd@c8e8a09
Some DRA drivers are using CDI:
https://github.com/search?q=repo%3ANVIDIA%2Fk8s-dra-driver%20cdi&type=code
A bunch of CI jobs in upstream are now enabling CDI:
https://cs.k8s.io/?q=enable_cdi&i=nope&files=&excludeFiles=&repos=
So let's switch it on in our images as well please.