简体   繁体   English

关于在 Kubernetes 中将 Pods 部署到 Master

[英]About deploying Pods to Master in Kubernetes

Im newbie with Kubernetes.我是 Kubernetes 的新手。 And I have 3 nodes cluster (1 master).我有 3 个节点集群(1 个主节点)。 I realized when I deploy pods, Kubernetes deploy them on worker nodes and not on master.我意识到当我部署 pod 时,Kubernetes 将它们部署在工作节点上,而不是主节点上。

Just a few pods on master node which are used by Kubernetes. Kubernetes 使用的主节点上只有几个 pod。 Does it make sense to deploy pods on the master node?在主节点上部署 Pod 有意义吗? Or do I avoid it?还是我避免它?

Deploying workload pods on master nodes is a way to put your whole cluster at risk在主节点上部署工作负载 Pod 是将整个集群置于风险之中的一种方式

Primary role of master is cluster management. master 的主要角色是集群管理。 Already many components of k8 are running on master.Suppose If pods scheduled on master without limit of resources and pods are consuming all the resources( cpu or memory), then master and in turn whole cluster will be at risk. k8 的很多组件已经在 master 上运行了。假设如果在 master 上调度的 pod 没有资源限制并且 pod 正在消耗所有资源(cpu 或内存),那么 master 进而整个集群都将处于危险之中。

So while designing Highly Available production cluster minimum 3 master, 3 etcd node are created and application pods are not scheduled on these nodes.因此,在设计高可用生产集群时,最少 3 个主节点,创建 3 个 etcd 节点,并且不会在这些节点上调度应用程序 pod。 Separate worker nodes added to assign workload添加了单独的工作节点以分配工作负载

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM