I have installed minikube on a server which I can access from the internet.
I have created a kubernetes service which is available:
>kubectl get service myservice
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
myservice 10.0.0.246 <nodes> 80:31988/TCP 14h
The IP address of minikube is:
>minikube ip
192.168.42.135
I would like the URL http://myservice.myhost.com (i.e. port 80) to map to the service in minikube.
I have nginx running on the host. I can set up a virtual host, mapping the URL to 192.168.42.135:31988 (the node port) and it works fine.
I would like to use an ingress. I've added and enabled ingress. But I am unsure of:
a) what the yaml file should contain
b) how incoming traffic on port 80, from the browser, gets redirected to the ingress and minikube.
c) do I still need to use nginx as a reverse proxy?
d) if so, what address is the ingress-nginx running on (so that I can map traffic to it)?