New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
registry mirrors #3221
Comments
Similar to #842? |
Hi @Gsonovb This is already possible, you can configure containerd like this: mkdir /var/snap/microk8s/current/args/certs.d/k8s.gcr.io
echo '
server = "https://k8s.gcr.io"
[host."https://registry.cn-hangzhou.aliyuncs.com/google_containers"]
capabilities = ["pull", "resolve"]
' | sudo tee -a /var/snap/microk8s/current/args/certs.d/k8s.gcr.io/hosts.toml Though there is relevant documentation in https://microk8s.io/docs/dockerhub-limits, I think we could use a section regarding the Afterwards, restart containerd with: sudo snap restart microk8s |
HI @davix Hi @neoaggelos
|
For the Did you try creating a deployment? |
The process of setting up a registry mirror is now documented in https://microk8s.io/docs/registry-private#configure-registry-mirrors-7. Closing the issue, please re-open if the documented steps are failing. Thank you! |
MicroK8s v1.25.0 revision 3883 |
If I use this scheme, I get the problem echo '
server = "https://k8s.gcr.io"
[host."https://registry.cn-hangzhou.aliyuncs.com/google_containers"]
capabilities = ["pull", "resolve"]
' | sudo tee -a /var/snap/microk8s/current/args/certs.d/k8s.gcr.io/hosts.toml got an event:
If I use this scheme, I get the problem echo '
server = "https://registry.cn-hangzhou.aliyuncs.com/google_containers"
[host."https://registry.cn-hangzhou.aliyuncs.com/google_containers"]
capabilities = ["pull", "resolve"]
' | sudo tee -a /var/snap/microk8s/current/args/certs.d/k8s.gcr.io/hosts.toml got an event:
|
Hi @CoachRun, Looks like the server has changed since the documentation was last updated. Can you try this instead?
|
I gave it a try, not working
|
That is most interesting. Does a
Both commands should work. If not, append |
uh...., It is worked. without
and
|
Great, the The |
Thanks for solve networking problem. It is work. But node status is Not Ready. The pipe problem remains. I don't know how to solve it.
|
Summary
add the registry mirror with rewrite function
For example,
k8s.gcr.io/pause:3.1
Redirect toregistry.cn-hangzhou.aliyuncs.com/google_ containers/pause:3.1
Why is this important?
Because the network firewall, Google and other registries cannot be accessed, microk8s cannot be started normally.
The text was updated successfully, but these errors were encountered: