microk8s icon indicating copy to clipboard operation
microk8s copied to clipboard

Add global docker image prefix to microk8s, since many people cannot access k8s.gcr.io

Open fzyzcjy opened this issue 2 years ago • 2 comments

Hi thanks for the library! I hope to add global docker image prefix to microk8s. In other words, if microk8s originally wants to pull from k8s.gcr.io/image-name, now with a global setting (say globalPrefix: my.registry.com), it is automatically renamed into my.registry.com/k8s.gcr.io/image-name.

This is because in many people, including China with 1.4 billion people, cannot access k8s.gcr.io since it is banned.

Related but not the same (proposed solution different): https://github.com/canonical/microk8s/issues/472

fzyzcjy avatar Apr 25 '22 02:04 fzyzcjy

Thank you for the suggestion @fzyzcjy. This is definitely something we need to address. Maybe a solution like [1] would be best.

[1] https://github.com/FairwindsOps/saffire

ktsakalozos avatar Apr 26 '22 08:04 ktsakalozos

We have added documentation for this in https://microk8s.io/docs/registry-private#configure-registry-mirrors-7

neoaggelos avatar Aug 05 '22 06:08 neoaggelos

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 01 '23 06:07 stale[bot]