Search code examples
google-kubernetes-engine

Resize instance types on Container Engine cluster


Some of our containers run better with memory above the instance type currently deployed in our Container Engine cluster. Is there a recommended practice to rebuild the container engine template for larger instances after the container engine cluster has been created?

For example, go from GCE instances n1-standard-2 to n1-highmem-8 for running containers with above 8GB RAM?


Solution

  • There is an official GKE tutorial for this:

    Migrating workloads to different machine types
    "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."

    https://cloud.google.com/kubernetes-engine/docs/tutorials/migrating-node-pool