I have a GKE cluster I'm trying to switch the default node machine type on.
I have already tried:
I'd prefer to not re-create the cluster and re-apply all of my deployments/secrets/configs/etc.
k8s version: 1.14.10-gke.24
(Stable channel)
Cluster Type: Regional
Disable the default-pool's autoscaler and set the pool size to 0 nodes.
Wish there was a way I could just switch the machine type on the default-pool...
The best approach to change/increase/decrease your node pool
specification would be with:
To migrate your workloads without incurring downtime, you need to:
node pool
.node pool
as unschedulable.node pool
.node pool
.node pool
.Your workload will be scheduled automatically onto a new 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.
There is official documentation about migrating your workload:
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.
Please take a look at above guide and let me know if you have any questions in that topic.