- eval $(minikube docker-env) = This command will set the docker environment variables for the current shell to minikube. This will allow for building images to the local minikube docker repo, so it can access them.
After this, you need to build the container using Docker, not docker-compose. The compose-level features will be handled by kubernetes, just the docker build configs matter here.
DO NOT USE "sudo" FOR DOCKER. That will use the local docker daemon, instead of MiniKube's
Need to use import-images to pull images from my local docker into it Don't forget about mounting the volume when creating the cluster
These commands get images imported
docker save mynginx > myimage.tar microk8s ctr image import myimage.tar
For mounting storage, hostpath is enough. Just combine a local directory with a container one. See TestServer for an example
To restart/reload a deployment microk8s kubectl rollout restart deployment testserver