You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Spegel Mirroring not working on AWS EKS 1.33 #1221
Spegel mirrors are not being used for image pulls. Containerd falls back to the upstream registry (ECR) even when the image exists in the local Spegel cache on another node.
Deploy Spegel to enable P2P image distribution in an EKS cluster. When a pod is scheduled on a new node, it should pull images from another node's local Spegel cache instead of ECR. The size of the image is near to 6G.
Expected behavior
Node A pulls image from ECR, Spegel caches it
Node B schedules a pod needing the same image
Containerd on Node B queries local Spegel mirror
Spegel finds the image via DHT lookup on Node A
Image is served from Node A's cache in seconds
What actually happened
Node A pulls image from ECR, Spegel caches it ✓
Node B schedules a pod needing the same image ✓
Containerd on Node B queries local Spegel mirror
Image is not found.
Containerd falls back to ECR, taking ~3 minutes instead of seconds
Evidence
Spegel logs confirm image is tracked and advertised: {"time":"2026-02-20T10:16:14.930673268Z","level":"INFO","msg":"OCI event","ref":"316971283637.dkr.ecr.us-east-1.amazonaws.com/fury:mlflow_staging-260216-1210-f72d444ad","type":"CREATE"}
Checked all the nodes provisioned and all of them this this enabled, verified this by running containerd config dump.
Deployed a service to run only on those restricting using affinity and tolerations. The size of docker image here is 6G compressed.
Started by setting the replicas count to 1. Takes 4 minutes 30 second to pull the image.
Increase the replicas count to 2. See a race condition where service pods start pulling image before Spegel pod on the node is running.
fix issue 7 by adding an init container to check for readiness of Spegel pods before starting the main container.
After 8. The service main container starts after Spegel pod on the node transitions to running state.
The image is still pulled from ECR, since the pull time is near to 3m57s.
Think 10 could be because the active peers are very few. Scale replicas to 3 at the same time. Every service pull the image when they run for the first time on a node.
We have 3 active peer. Scale up the deployment to 4 replicas, expect Spegel would work. Again it take 3m 50s to bring up the pod on the node.
However when you port-forward and access /web/debug and try to test mirroring. The time to pull image comes to 35 seconds. But image pull via containerd does not seem to be functional here.
Please let me know if you need any more details. Happy to share.
Thank you for the ping on this.
Currently, I am focusing on Spegel bugs and features on the homelab/individual consumer use case. Also, because this project is maintained and free to use, I don't have funds (and time, sadly) to spend on spinning up an EKS cluster to debug this issue at this time. Hopefully this changes in the near future.
However, if community members wants to work together to solve this issues and submit PRs, I am happy to take a look.
The issue reporter's fix likely failed because they put config_path under [plugins."io.containerd.grpc.v1.cri".containerd] (same section as discard_unpacked_layers) instead of the separate [plugins."io.containerd.cri.v1.images".registry] section — different TOML path.
Hi everyone and thank you for you response.
QQ: @shahmirwahid-bolt@royra did you check image distribution from private ECR repos and everything works , correct?
Thank you
thanks everyone for all the updates. This configuration was not working for me earlier, however we just moved EKS to 1.34. I'll try and share the outcome.
Activity
phillebaba commentedon Feb 23, 2026
It is hard to tell what is not working without knowing much more about your setup. Did you follow the guide to configure your EKS nodes properly?
ITAdmin2026 commentedon Feb 23, 2026
closed the issue accidentally, hence reopening it.
containerd config dump.Please let me know if you need any more details. Happy to share.
2del4u commentedon Feb 27, 2026
I have the same issue, but I found that it only happens with the ECR registry. The Docker registry works fine, though
2del4u commentedon Mar 12, 2026
Hello @phillebaba , any thoughts/updates about this issue?
Thank you in advance.
phillebaba commentedon Mar 12, 2026
Thank you for the ping on this.
Currently, I am focusing on Spegel bugs and features on the homelab/individual consumer use case. Also, because this project is maintained and free to use, I don't have funds (and time, sadly) to spend on spinning up an EKS cluster to debug this issue at this time. Hopefully this changes in the near future.
However, if community members wants to work together to solve this issues and submit PRs, I am happy to take a look.
royra commentedon Mar 22, 2026
Confirmed working on EKS 1.35 with this
NodeConfig:The issue reporter's fix likely failed because they put config_path under
[plugins."io.containerd.grpc.v1.cri".containerd](same section asdiscard_unpacked_layers) instead of the separate[plugins."io.containerd.cri.v1.images".registry]section — different TOML path.dampcake commentedon Mar 23, 2026
@royra the docs currently show using:
This seems to match the containerd configs for v2 (https://github.com/containerd/containerd/blob/main/docs/cri/config.md#full-configuration). I believe your example is showing a mix of containerd 1.x and 2.x configurations.
royra commentedon Mar 23, 2026
@dampcake you're right. updated to v2 paths only (as the docs show) and it's still working on EKS 1.35 / containerd 2.1.5.
shahmirwahid-bolt commentedon Mar 26, 2026
I can also confirm that it's working on EKS 1.34 with the following configuration changes only:
2del4u commentedon Mar 27, 2026
Hi everyone and thank you for you response.
QQ: @shahmirwahid-bolt @royra did you check image distribution from private ECR repos and everything works , correct?
Thank you
ITAdmin2026 commentedon Mar 27, 2026
thanks everyone for all the updates. This configuration was not working for me earlier, however we just moved EKS to 1.34. I'll try and share the outcome.