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?
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.
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.
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/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With