Hi friends, I'm using pulumi-eks to provision EKS ...
# kubernetes
a
Hi friends, I'm using pulumi-eks to provision EKS clusters. What's the best way to configure registry mirrors? I couldn't find any pointers in the docs. Thanks!
q
You'll need to configure containerd to pull from the registry mirror. You can either set this up at node boot time using user data or bake an AMI that has this already configured and use that as your node AMI. See containerd settings for more details: https://github.com/containerd/containerd/blob/main/docs/cri/registry.md
For docker.io for example, you'd do the following: Create the following file
/etc/containerd/certs.d/docker.io/hosts.toml
with these contents:
Copy code
server = "<https://registry-1.docker.io>"

[host."<http://my-registry:8080>"]
  capabilities = ["pull", "resolve", "push"]
And then put the following in your containerd configuration:
Copy code
[plugins."io.containerd.grpc.v1.cri".registry]
   config_path = "/etc/containerd/certs.d"
a
I see, thank you very much!