Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Container Engine with external IP, without load balancer

I am able to connect to the app running in my pod in Kubernetes, but that was with a load balancer gateway, based on the documentation here:

https://cloud.google.com/container-engine/docs/tutorials/http-balancer

Is there any way to run a web server on Google Container Engine without having to pay $18/month for a separate load balancer?

like image 238
skunkwerk Avatar asked Jun 23 '17 06:06

skunkwerk


People also ask

What is the difference between external IP and LoadBalancer IP?

Another important difference is that while LoadBalancers are provisioned automatically by Kubernetes if you're in a supported cloud environment, External IPs are manually provisioned by you, which might mean more or less flexibility, depending on your setup.

Does ingress require LoadBalancer?

The GKE Ingress controller creates and configures an HTTP(S) Load Balancer according to the information in the Ingress, routing all external HTTP traffic (on port 80) to the web NodePort Service you exposed. Note: To use Ingress, you must have the HTTP(S) Load Balancing add-on enabled.


1 Answers

Try using type: Nodeport for the service. This will open a port on all your nodes. You can use then direct traffic to that port. Refer: https://kubernetes.io/docs/concepts/services-networking/service/

like image 114
user3098466 Avatar answered Oct 12 '22 14:10

user3098466