As in the title: can I specify e.g.
image: frontend:3.4
in k8s' configuration file without giving any reference to local repository/Docker Hub/any other remote registry?
In other words: can Kubernetes load local images like Docker does, e.g.:
docker --rm --name frontend frontend:3.4
CodePudding user response:
In Microk8s you need to import the image first, so direct access to the docker daemon is not possible.
For example you have your local image frontend:3.4
you need to export it from docker and import it like so:
docker save frontend:3.4 > tmp-image.tar
microk8s ctr image import tmp-image.tar
You can verify the import using
microk8s ctr images ls