问题
I have an application running on kubernetes and I am using minikube for developing and testing it. I set up the minikube, ingress and application and they are working locally as I described here "Traefik ingress does not work with cluster IP" but I don't know how to connect to my application from a remote machine.
What I want to do is, I want to run some performance test and find the bottleneck in my application. The application and minikube are located on machine-A and I want to send some requests to it from machine-B and write stuff to rethinkdb. Obviously, my minikube cluster IP is different than the machine-A network IP. One way is to use a webserver on machine-A to forward any incoming request to the minikube and kubernetes but that will affect my performance test. The second solution that came to my mind was port forwarding but for that I need an IP and as I mentioned in my last question ingress is not working with IP.
Now my questions:
How I can run my performance test based on the above scenario? (an example would be highly appreciated)
When running kubeadm on vm or bare-metal in production how ingress connects to the internet?
来源:https://stackoverflow.com/questions/56171237/how-to-connect-to-ingress-remotely-and-use-a-kubernetes-application