Managed Kubernetes Price Comparison (2020)

栏目: IT技术 · 发布时间: 4年前

内容简介:TL;DR:Azure doesn’t charge for the compute resources used for the control plane, making AKS the cheapest for running many, smaller clusters. For running fewer, larger clusters GKE is the most affordable option. Also, running on spot/preemptible/low-priorit

March 5, 2020

Categories:

Comparison , Pricing

Tags:

Kubernetes , AWS , GCP , Azure , EKS , GKE , AKS

TL;DR:Azure doesn’t charge for the compute resources used for the control plane, making AKS the cheapest for running many, smaller clusters. For running fewer, larger clusters GKE is the most affordable option. Also, running on spot/preemptible/low-priority nodes or long-term committed nodes makes a massive impact across all of the platforms.

Managed Kubernetes Price Comparison (2020)

Table of Contents:

Overview

With Google Cloud’s recent announcement to start charging $0.10/hour for each cluster on GKE, it seemed like a good time to revisit pricing across the major managed Kubernetes offerings.

Managed Kubernetes Price Comparison (2020)
This upset some people on the internet...

This article will focus on:

Cost Breakdown

The cost of running Kubernetes on each of these platforms is based on the following components:

  • Cluster Management Fee
  • Load Balancer (for Ingress)
  • Worker Node Compute Resources (vCPU & Memory)
  • Data Egress
  • Persistent Storage
  • Load Balancer Data Processing

Additionally, the cloud providers offer large discounts if you are willing/able to use preemptible/spot/low-priority nodes OR commit to using the same nodes for 1-3 years.

It is important to point out that while cost is a useful dimension to examine when evaluating providers, there are other factors which should also be considered including:

  • Uptime (Service Level Agreement)
  • Surrounding Cloud Ecosystem
  • k8s Version Availability
  • Documentation/Tooling Quality

Those factors are beyond the scope of this article/exploratory analysis.

Jupyter Notebook

To make it easier to explore the cost tradeoffs I created a Jupyter notebook using plotly + ipywidgets to facilitate rapid exploration of cluster sizes/tradeoffs across the different cloud providers.

You can interact with a live version of that notebook yourself using Binder:

Managed Kubernetes Price Comparison (2020)
https://mybinder.org/v2/gh/sidpalas/managed-kubernetes-pricing/master?filepath=%2Fmanaged-kubernetes-price-exploration.ipynb

If any of my calculations or pricing constants look incorrect, please let me know (via a Github Issue or Pull Request! – Github repository )

Takeaways

There are too many variables to give much of a recommendation beyond my TL;DR up top, but here are some takeaways:

  • With the recent GKE change, AKS is now the only (of these 3) that doesn’t charge for the control plane resources. If your architecture incorporates many small clusters (e.g. 1 cluster per developer or per customer ) AKS has an advantage.
  • Google’s slightly cheaper compute resources result in lower cost as cluster sizes scale*.
  • Taking advantage of preemptible and/or committed use discounts can reduce costs by >50%.
  • While Google’s data egress fees are higher, the compute resources dominated the cost calculation (unless you are sending a significant amount of data out of the cluster).
  • Choosing machine types that match your workloads CPU and Memory needs will avoid paying for wasted capacity.

* NOTE: I used general-purpose compute node types for all 3 clouds (n1 GCP Compute Engine instances, m5 AWS ec2 instances, and Dv3 Azure virtual machines). Further exploration could be done across the burstable and entry-level VM types. Also, it appeared that pricing for VMs scaled linearly with # of vCPU and GB of memory, but I am not sure that assumption holds as you move towards some of the less standard memory/cpu ratios.

This article “The Ultimate Kubernetes Cost Guide: AWS vs GCP vs Azure vs Digital Ocean” published in 2018 used a single reference cluster with 100 vCPU cores and 400 GB of memory. As a point of comparison, here is how much my calculation shows that cluster would cost (using on-demand prices) on each of these platforms.

  • AKS: $51,465/year
  • EKS: $43,138/year
  • GKE: $30,870/year

Hopefully this article + notebook will help you in your journey to evaluate the major managed Kuberentes offerings and/or save $$$ on your cloud infrastructure by taking advantage of the available cost saving opportunities.


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

世界是平的

世界是平的

[美] 托马斯·弗里德曼 / 何帆、肖莹莹、郝正非 / 湖南科学技术出版社 / 2006-11 / 56.00元

当学者们讨论世界这20年发展的历史,并把目光聚集在2000年到2004年3月这一段时间时,他们将说些什么?9·11恐怖袭击还是伊拉克战争?或者,他们将讨论:科技的汇集与传播使得印度、中国和许多发展中国家成为世界商品和服务产品供给链上的一员,从而为世界大的发展中国家中的中产阶级带来了大量的财富,使这两个国家在全球化浪潮中占据更有利的位置?随着世界变得平坦,我们必须以更快的速度前进,才能在竞争中赢得胜......一起来看看 《世界是平的》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具