Autoscaling Kubernetes Node Pools and Pods
Find out about autoscaling Kubernetes node pools and pods you've created using Container Engine for Kubernetes (OKE).
You can automatically scale the node pools and pods of clusters you create using Container Engine for Kubernetes to optimize resource usage.
To enable cluster autoscaling by autoscaling node pools, you can deploy the Kubernetes Cluster Autoscaler (see Using the Kubernetes Cluster Autoscaler).
To enable autoscaling by autoscaling pods, you deploy the Kubernetes Metrics Server to collect resource metrics from each worker node in the cluster (see Deploying the Kubernetes Metrics Server on a Cluster Using Kubectl). Having deployed the Kubernetes Metrics Server, you can then use:
- the Kubernetes Horizontal Pod Autoscaler to adjust the number of pods in a deployment (see Using the Kubernetes Horizontal Pod Autoscaler)
- the Kubernetes Vertical Pod Autoscaler to adjust the resource requests and limits for containers running in a deployment's pods (see Using the Kubernetes Vertical Pod Autoscaler)
You can use the Kubernetes Cluster Autoscaler in a cluster with both the Kubernetes Horizontal Pod Autoscaler and the Kubernetes Vertical Pod Autoscaler.
You can use the Kubernetes Cluster Autoscaler and the Kubernetes Vertical Pod Autoscaler with managed node pools only. You can use the Kubernetes Metrics Server and the Kubernetes Horizontal Pod Autoscaler with both virtual node pools and managed node pools.