The accepted answer works great on a single node minikube cluster.
In case someone wants to build and use a local image on a multi-node minikube cluster, you can use **--all** file while building the image
minikube image build -t <image-name>:<tag> . --all
The image built via above command can be directly used in deployment file with **imagePullPolicy** set to **Never**
FYI, command to run a multi-node minikube cluster
minikube start --nodes <number-of-nodes>
The accepted answer works great on a single node minikube cluster.
In case someone wants to build and use a local image on a multi-node minikube cluster, you can use **--all** file while building the image
minikube image build -t <image-name>:<tag> . --all
The image built via above command can be directly used in deployment file with **imagePullPolicy** set to **Never**
FYI, command to run a multi-node minikube cluster
minikube start --nodes <number-of-nodes>