I am trying to determine the most minimal Kubernetes Engine setup for a simple public facing (public load balanced IP) web app.
I have mine setup as follows:
My monthly billing cost is: CA$48.10: half of that being from Compute Engine Network Load Balancing: Forwarding Rule Minimum Service Charge in Americas: 744 Hours CA$23.82
Is there someway to reduce this cost? Or is this truly the cost of a minimal Kubernetes Cluster serving an app with a public domain name?
Spoiler alert: We estimate that operating Kubernetes clusters costs at least $100k and can easily cost more than $500k annually for a ridiculously low amount of resources.
The GKE free tier provides $74.40 in monthly credits per billing account that are applied to zonal and Autopilot clusters. If you only use a single Zonal or Autopilot cluster, this credit will at least cover the complete cost of that cluster each month.
If we compare the underlying infrastructure cost for both Kubernetes Engine and Google App Engine with 20 CPU and 75 GB of memory, then Google App Engine costs approximately USD $1,156.69, while Kubernetes costs just USD $485.45.
Kubernetes on Google Cloud When you run a GKE cluster, you also gain the benefit of advanced cluster management features that Google Cloud provides. These include: Google Cloud's load-balancing for Compute Engine instances. Node pools to designate subsets of nodes within a cluster for additional flexibility.
You can expose you service using other ways, if you do not have to much traffic maybe you don't need a load balancer here is one guide link
Using a NodePort you can use the public IP of one of your nodes, set this IP as static and config your DNS to point at this public IP.
In theory you don't need a load balancer. If you work with nodeports you can connect to that port on the ip of any vm in your cluster. And kubernetes will still load balance internally to the right pod. However, you might have a hard time managing your DNS and firewall settings using this approach. Since I don't believe its possible to give static ip's to kubernetes nodes.
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