gpt4 book ai didi

kubernetes - 节点池与一个池中的节点数

转载 作者:行者123 更新时间:2023-12-02 11:32:37 25 4
gpt4 key购买 nike

在配置 k8 集群时,在 digital ocean 的仪表板中,在选择集群容量下,我看到一个选项,可以在池中添加节点或完全添加新池。我不太明白其中的区别。

DO 给出了以下对我来说很模糊的建议 -

Increasing the number of nodes in a pool lets you run more instances of the scheduled services. Adding more node pools allows you to schedule pods to different node pools so each pod has the RAM, CPU, and storage it requires. You can add and remove nodes and node pools at any time.



任何人都可以举个例子,当一个人增加一个池中的节点以及一个人完全创建一个不同的池时?

谢谢!

最佳答案

从 GCP 的文档:

A node pool is a group of nodes within a cluster that all have the same configuration.



节点池有一个特定的节点类型,它告诉他们可以使用什么类型的虚拟机作为他们的节点。例如,我可以拥有这三个节点池:

highmem:4 个 vCPU,32G 内存,无 GPU

highcpu:8 个 vCPU,16G 内存,无 GPU

gpu:4 个 vCPU,8G 内存,1 个 Nvidia Tesla GPU

我可以独立扩展每个节点池,我的池中可以有 3 个 highmem 节点,用于使用大量内存但 CPU 较少的进程,而我的 highcpu 池中只有 1 个节点用于使用大量内存的进程CPU,但更少的内存。同时,我有一个用于 GPU 进程的节点池,例如 Tensorflow 或图像处理程序。 Assigning pods to node pools通过资源定义中的节点选择器或关联选项完成。

因此,拥有不同的节点池使您能够将经过微调的 VM 用于不同的目的。如果仅限于单个池,则必须使用具有大量 RAM、CPU 和 GPU 的大型 VM,这将非常昂贵且效率低下。

请注意,节点池并不意味着允许“隔离”应用程序。为了在逻辑上分离应用程序,可以使用命名空间而不是节点池。节点池仅用于管理所使用的资源和虚拟机类型。

关于kubernetes - 节点池与一个池中的节点数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58080748/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com