kube-nginx-proxy
kube-nginx-proxy copied to clipboard
Can I use this instead of a Load balancer
Hi, I'm a newbie to K8 and would appreciate any insight into the following problem.
I want to eliminate the load balancer that I'm using currently for my staging environment as I don't need it. My thought was to place a cheap VM instance before my k8 cluster as an NGINX API Gateway which would route to the K8 cluster like mentioned here. However, the issue, I think is that if my pre-emptible nodes close and restart, their name will be different and I have to manually update my nginx.conf in my cheap api gateway.
Can I use kube-nginx-proxy to replace my cheap api gateway and my load balancer? If so, how do I expose it so that I can access it from a browser. Where my knowledge fails is that I normally assign a DNS name to an IP address but I'm unclear how to do that with kube-nginx-proxy if it covers my scenario.
If you know of another way to solve my problem, I would be grateful to hear of it.
Thanks, Rajiv