Start your minikube cluster with:
minikube start --vm
Enable the Ingress add-on with:
minikube addons enable ingress
Instead of uploading the Docker image to a registry, you can create the image in the cluster directly.
Connect to the Docker daemon inside minikube with:
minikube docker-env
# follow the instructions in the output
You Docker CLI is connected to the Docker daemon inside minikube.
You can create the Docker image with:
docker build -t labv2 .
Create a namespace with:
kubectl create namespace labv2
Deploy all of the resources with:
kubectl apply -f deployment.yaml --namespace labv2
Retrieve the IP address of minikube with:
minikube ip
Visit the application at http://<minikube-ip>/v2