Simple Kubernetes cluster costing GCP vs AWS vs Azure vs DO

0 votes

I have recently started my Kubernetes system in Google Cloud. they offered this free $300 worth of free credits for newbies which is nice. So I spun up 2 VMs for my cluster and ran 2 replicas of redis pod with 1Gig persistent storage, 2 replicas of mongodb with 3gig persistent storage, and a nodejs app container utilizing them. I had my DNS and and used Google's ingress to manage the loadbalancer and static IP. Now when I looked at my billing, I was hoping for something like $30 a month but am surprised to see there are more charges that are activated when your run things like ingress (network and loadbalancer) and service load balancer (which I activate when I access my MongoDB directly from an ephemeral IP address

Here is the daily rate I have now in my Singapore stack billing

FEATURE                                   | DAILY_COST | MONTHLY_COST |
Persistent Disk (Singapore)               |      $0.05 |        $1.50 |
2x N1 Standard predefined instance (RAM)  |      $0.95 |       $28.50 |
2x N1 Standard predefined instance (CORE) |      $1.90 |       $57.00 |
Managed Zones                             |      $0.01 |        $0.30 |
HTTP Load Balancing: Global Forwarding    |      $0.60 |       $18.00 |
Network Load Balancing                    |      $0.67 |       $20.10 |
-----------------------------------------------------------------------
TOTAL                                     |      $4.18 |      $125.40 |
-----------------------------------------------------------------------
(NOTE: Static IP is free of course if I assign them and costs $0.26 a day if I just let it float.)

I was kinda shocked that this setup costs $125 a month already and for a hobby or small app that is quite a lot. That $300 might not last 3 months even. I am also shocked that the declared pricing and actual cost Google stated does not match. In their compute cloud pricing page here it stated that a single core 3.75 G will cost $29.94 per instance a month. but in the billing, you can clearly see these costs are split and their total is almost 2 times of that at roughly $85.5 a month for 2 instances (or $42.75 each). This is kinda a red flag to be honest when pricings and actual bills do not match...

So I am hoping if you guys have some recommendation and have experiences running on competitors like Digital ocean, AWS or Azure if the same setup would be more cost effective there. I heard DO starts at 5$ but when I saw it is almost similar in spec to google's f1-micro which when I used, would spawn me like 5-7 nodes just to manage where some services keep failing due to out of ram issues. I added a g1-small then and it allowed me to have 2 instances of g1 with 5 f1.

Why this big? well besides the normal pods I have, in order for me to manage some functionalities in the Google Cloud, I need to have Google Connector deployed to my cluster. Yes this is weird where Google requires you to deploy something and host it and pay for it so you can manage your kubernetes cluster like handling secrets and so on... that along created the following services in my cluster

cnrm-controller-manager  Stateful Set   1/1 
cnrm-deletiondefender    Stateful Set   1/1
cnrm-resource-stats-recorder Deployment 1/1 
cnrm-webhook-manager    Deployment  1/1
Mar 30 in GCP by Rahul
• 2,540 points
23 views

1 answer to this question.

0 votes

Please use GCP Price Calculator for proper cost estimation. GCP's pricing model is much cheaper than AWS such as custom VM sizing, auto sustained discount etc.

answered Apr 6 by Korak
• 4,460 points

Related Questions In GCP

0 votes
1 answer

Getting certified in which of these (AWS, Azure, GCP) help me fetch a good job in India?

Most people would recommend AWS (Amazon web Services), and it’s actually a top-tier cert to ...READ MORE

answered Nov 25, 2019 in GCP by Sirajul
• 59,170 points
610 views
0 votes
1 answer

How to create Kubernetes Cluster in GCP Cloud?

Hi@akhtar, A cluster consists of at least one cluster control ...READ MORE

answered Nov 11, 2020 in GCP by MD
• 95,340 points
415 views
0 votes
1 answer

How do I setup a network peering connection from multiple GCP projects to the same MongoDB cluster

If you have a project and want ...READ MORE

answered Apr 11 in GCP by Korak
• 4,460 points
51 views
0 votes
1 answer

How do I create a Virtual Machine on GCP?

To create a VM instance: It is important you ...READ MORE

answered Sep 20, 2019 in GCP by Sirajul
• 59,170 points
575 views
0 votes
1 answer

How do I create a Google Cloud Platform (GCP) account?

In order to access the services provided ...READ MORE

answered Sep 20, 2019 in GCP by Sirajul
• 59,170 points
1,976 views
0 votes
1 answer

GCP v/s AWS : Which cloud provider to choose?

Depends on what exactly you are looking ...READ MORE

answered Sep 23, 2019 in GCP by Sirajul
• 59,170 points
299 views
0 votes
1 answer

Accessing AWS resources (aws xray) from GCP or Azure

You can create a role that users ...READ MORE

answered Apr 6 in GCP by Korak
• 4,460 points
15 views
0 votes
1 answer

Accessing AWS resources (aws xray) from GCP or Azure

You can create a role that users ...READ MORE

answered Apr 6 in GCP by Korak
• 4,460 points
41 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP