kind icon indicating copy to clipboard operation
kind copied to clipboard

migrate containerd registry endpoint to hosts.toml

Open matthyx opened this issue 3 years ago • 11 comments

see https://github.com/kubernetes/kubernetes/issues/110312

matthyx avatar Oct 04 '22 08:10 matthyx

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: matthyx Once this PR has been reviewed and has the lgtm label, please assign bentheelder for approval by writing /assign @bentheelder in a comment. For more information see:The Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

k8s-ci-robot avatar Oct 04 '22 08:10 k8s-ci-robot

Hi @matthyx. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

k8s-ci-robot avatar Oct 04 '22 08:10 k8s-ci-robot

Were it so easy https://kind.sigs.k8s.io/docs/user/local-registry/

https://github.com/kubernetes-sigs/kind/issues/2875

BenTheElder avatar Oct 04 '22 14:10 BenTheElder

This change is a significant regression to our users and we don't have an obvious path forward. Today we make it easy to patch containerd config.

Tomorrow that will be useless and users will have to create and mount an additional file or we will have to add some other UX.

Also, when we enable this, these images become broken for users leveraging the existing format.

BenTheElder avatar Oct 04 '22 15:10 BenTheElder

🍿 https://github.com/kubernetes/kubernetes/issues/110312#issuecomment-1265470633

it seems this will take some time

aojea avatar Oct 04 '22 15:10 aojea

/hold ok

matthyx avatar Oct 04 '22 15:10 matthyx

I think we will probably have to design a KIND registry config format to shim this, so we can backend it with either containerd inline or the hosts dir.

When doing so we also need to consider the longstanding feature request for a built-in registry user experience.

BenTheElder avatar Oct 04 '22 15:10 BenTheElder

KIND probably won't be able to just sit on an LTS release forever, because it will block k8s development to not pick up new CRI features. It's unclear how long we have until 2.0 though.

BenTheElder avatar Oct 04 '22 15:10 BenTheElder

do you have a KinDEP process ;-) ?

matthyx avatar Oct 04 '22 15:10 matthyx

do you have a KinDEP process ;-) ?

there was some try IIRC, I think that Ben also opened an issue about that

aojea avatar Oct 04 '22 16:10 aojea

https://kind.sigs.k8s.io/docs/contributing/getting-started/ points to discussing designs in an issue before moving to implementation. You can see some examples of issues outlining designs.

BenTheElder avatar Oct 04 '22 17:10 BenTheElder

PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

k8s-ci-robot avatar Mar 15 '23 03:03 k8s-ci-robot

we just removed this config from the base image, we still need a good plan for how users can reasonably switch over with their custom registry configs. we have other much more pressing issues at the moment though.

BenTheElder avatar Mar 15 '23 04:03 BenTheElder

#3122

BenTheElder avatar Mar 15 '23 04:03 BenTheElder

Yeah, I let that rot a bit... thanks Ben.

matthyx avatar Mar 15 '23 06:03 matthyx

thanks for the PR, this is going to be a mess to finish sorting out 😅

BenTheElder avatar Mar 15 '23 06:03 BenTheElder