How to connect to ingress remotely and use a Kubernetes application?

白昼怎懂夜的黑 提交于 2020-01-06 04:40:50

问题


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:

  1. How I can run my performance test based on the above scenario? (an example would be highly appreciated)

  2. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!