educative.io

How is Ingress resource accessing port 80

The go-demo-2-ingress.yml indicates that all requests to the route /demo that are incoming on port 8080 are to be given a 200 response.

We did a port forwarding nohup kubectl port-forward -n ingress-nginx service/ingress-nginx-controller 3000:80 --address 0.0.0.0 > /dev/null 2>&1 & indicating that all requests arriving on port 3000 will be forwarded to port 80

How are the requests from port 80 send to port 8080 to give a 200 response ?