minikube start --driver=kvm2
tf apply --auto-approve
A LoadBalancer service is the standard way to expose a service to the internet. With this method, each service gets its own IP address.
Services of type LoadBalancer can be exposed via the minikube tunnel command. It must be run in a separate terminal window to keep the LoadBalancer running.
minikube tunnel --cleanup
$ kubectl get svc
Sample result
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 20h
reverse-proxy-nginx-ingress-controller LoadBalancer 10.105.192.35 10.105.192.35 80:31654/TCP,443:31351/TCP 29m
Open in your browser
http://REPLACE_WITH_EXTERNAL_IP:8080
http://REPLACE_WITH_EXTERNAL_IP:8080/hello-world