The following show-cases how to deploy everything locally on minikube.
minikube start
Retrieve the IP address minikube is running on
$ minikube ip
192.168.49.2
Install metallb
$ minikube addons enable metallb
Configure an IP address range for metallb, based on the minikube address found earlier. Just increment a few digits:
$ minikube addons configure metallb
-- Enter Load Balancer Start IP: 192.168.49.10
-- Enter Load Balancer End IP: 192.168.49.20
Verify
kubectl describe configmap config -n metallb-system
Ensure to be inside the k8s/
directory of this repository.
kubectl apply -f .
Retrieve the load balancer URL
$ kubectl get svc dvwa-web-service
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
dvwa-web-service LoadBalancer 10.102.127.193 192.168.49.10 8081:30434/TCP 78s
Then open http://192.168.49.10:8081