大网数据广告活动
服务器运维问答

What Are the Hardware Requirements of Kubernetes Master Node

· 52CE 我爱测

We are trying to setup one cluster with 25 worker nodes and 1 master node. Before doing that, we need to choose the hardware, especially for the master node. How to estimate the hardware resources we need? Do hardware requirement…

问题原文

原帖链接 · Steve Peng · CC BY-SA 4.0

We are trying to setup one cluster with 25 worker nodes and 1 master node. Before doing that, we need to choose the hardware, especially for the master node.

How to estimate the hardware resources we need? Do hardware requirements of the master node relate to the size of the cluster? Is there something like an official hardware recommendation or resource rules we can follow?

社区高分解答

原帖链接 · PjoterS · CC BY-SA 4.0

Well, your question is very general. All depends on many factors, resources you want to use, how nodes will be used, for what purposes, if there will be HorizontalPodAutoscaler/ClusterAutoscaler, what environment you want to use, quota settings, resource limits/requirements and many more.

However, if you would go to Kubernetes documentation you will be able to check current Kubernetes version capabilities:

At v1.19, Kubernetes supports clusters with up to 5000 nodes. More specifically, we support configurations that meet all of the following criteria:

  • No more than 5000 nodes
  • No more than 150000 total pods
  • No more than 300000 total containers
  • No more than 100 pods per node

If you would like to run Kubernetes on local environment, you would need to read a lot about kubeadm and Highly Available clusters.

However, if you would decide to use cloud environment like Google Kubernetes Engine, Amazon EKS, Azure Kubernetes Service, OpenShift, etc; you will be able to find those requirements in specific cloud provider documentation.

In Kubernetes documentation you will be able to find some general information for Size of master and master components in GKE and AWS

On GCE/Google Kubernetes Engine, and AWS, kube-up automatically configures the proper VM size for your master depending on the number of nodes in your cluster. On other providers, you will need to configure it manually. For reference, the sizes we use on GCE are:

  • 1-5 nodes: n1-standard-1
  • 6-10 nodes: n1-standard-2
  • 11-100 nodes: n1-standard-4
  • 101-250 nodes: n1-standard-8
  • 251-500 nodes: n1-standard-16
  • more than 500 nodes: n1-standard-32

And the sizes we use on AWS are

  • 1-5 nodes: m3.medium
  • 6-10 nodes: m3.large
  • 11-100 nodes: m3.xlarge
  • 101-250 nodes: m3.2xlarge
  • 251-500 nodes: c4.4xlarge
  • more than 500 nodes: c4.8xlarge

It's also worth to mention that some cloud environments (like GKE) master node are managed by cloud provider. Therefore you don't need to worry about master but you can focus on other aspects like HPA, CA or Network configuration.

As last thing you can read Kubernetes Capacity Planning article.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2020-09-07)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。