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

Add matching based on platform.features and platform.compatibilities #13

Closed
wants to merge 1 commit into from

Conversation

mfranczy
Copy link

@mfranczy mfranczy commented Jul 8, 2024

That is a simple prototype to show how we could improve image selection in containerd.
The code of this prototype should be improved and maybe platforms in a few places refactored, however, it solves the problem and shows the general idea which is:

  • use platform.features for CPU features
  • introduce platform.compatibilities which is a map that allows to provide matching labels.

Additionally, I introduced a new config file /etc/containerd/platform-config.toml where people can provide information to containerd services about nodes cpu features and compatibility data.

Example of the new config file:

features = ["avx512"]

[compatibilities]
  "oci.kernel.modules.kvm" = "true"

@mfranczy mfranczy closed this Jul 8, 2024
@mfranczy
Copy link
Author

mfranczy commented Jul 8, 2024

I am sorry, that suppose to be only for oci-playground repo. Not the core containerd repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant