Skip to content

add new config file entry to extend containerd configurationΒ #4096

@lavigne958

Description

@lavigne958

What would you like to be added:

I would like to have a way to extend containerd configuration without having to manually create a new file and mount it onto the host, please.

Why is this needed:

This is needed in my case to setup containerd to use my local registry instead of the regular docker.io that is rate limited.

Extra context:

This containerd configuration changes used to be located in the file /etc/containerd/config.toml
and that file can be extended using the kind cluster configuration entry containerdConfigPatches before containerd v2.2

now with containerd v2.2 we must manually place a file in the node under /etc/containerd/certs.d/<old registry> with the registry override configuration for containerd to take it into account.

This requires the user to create 2 files

  1. the kind cluster configuration file
  2. the containerd extended configuration

Now that this new configuration format is made by placing a new file, we could add a new entry in the kind configuration and take the entire string from that entry and put it in the file at the right place.

as opposed as before where some merging was necessary.

I'm willing to help and work on this feature if it gets accepted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions