我有一个 GKE 集群,我正在尝试打开默认节点机器类型。
我已经尝试过:
我不想重新创建集群并重新应用我的所有部署/ secret /配置/等。
k8s 版本:
1.14.10-gke.24
(稳定 channel )集群类型:区域
最佳答案
改变/增加/减少您的最佳方法node pool
规范将与:
要在不导致停机的情况下迁移您的工作负载,您需要:
node pool
. node pool
因为不可安排。 node pool
上运行的工作负载. node pool
上正确运行. node pool
. 您的工作负载将自动安排到新的
node pool
上.Kubernetes, which is the cluster orchestration system of GKE clusters, automatically reschedules the evicted Pods to the new node pool as it drains the existing node pool.
有关于迁移工作负载的官方文档:
This tutorial demonstrates how to migrate workloads running on a GKE cluster to a new set of nodes within the same cluster without incurring downtime for your application. Such a migration can be useful if you want to migrate your workloads to nodes with a different machine type.
请查看以上指南,如果您对该主题有任何疑问,请告诉我。
关于kubernetes - 更改 GKE 集群上的节点机器类型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60784363/