Suppose there is a container image whose original image name is quay.io/xyz/abc:0.1.0. Use ctr image pull to pull it locally and load it into the built-in registry. Normally, to access the container image in the registry, you need to use the image name localhost:32000/quay.io/xyz/abc:0.1.0. For a YAML file whose image field is written with the original container image name, this means changing the image field from the original container image name to the registry image name. Modifying a large number of YAML files will cause a series of problems. Therefore, it is desirable to configure MicroK8s contained to support transparent redirection of container images, that is, without modifying the image field in the YAML file and keeping its original container image name, while actually automatically accessing the registry, i.e., quay.io/xyz/abc:0.1.0 → localhost:32000/quay.io/xyz/abc:0.1.0. How should this be configured in practice?
1 Like