kubernetes-sigs / kind

Kubernetes IN Docker - local clusters for testing Kubernetes
https://kind.sigs.k8s.io/
Apache License 2.0
13.32k stars 1.54k forks source link

containerd deprecated CRI hosts config #2875

Open BenTheElder opened 2 years ago

BenTheElder commented 2 years ago

This is unfortunate, it will be much harder for users to configure things like local registry as you cannot configure it inline in containerd config anymore. Also, enabling the new non-deprecated configuration route will disable the old one AFAICT https://github.com/containerd/containerd/blob/main/docs/hosts.md#cri

You now need to create a directory with a host.toml file for each host, I'm also not sure if this means wildcard hosts are no longer supported.

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

BenTheElder commented 1 year ago

https://github.com/kubernetes-sigs/kind/pull/3233 Is out to give us a chance to pivot the default but it will be some time before user configs have this.

I think we're going to need a PSA in the next round of release notes

BenTheElder commented 1 year ago

This is going to be a bit kludge without more functionality. I guess we can eventually flip on the config path and then tell users to extraMounts a directory with the host configs but that's not amazing and it's more error prone than the existing approach (commonly users don't have the right mount sharing)

BenTheElder commented 1 year ago

https://github.com/kubernetes-sigs/kind/releases/tag/v0.20.0 has a PSA about this