The Oracle Linux and Virtualization team is pleased to introduce two new hands-on labs that explore autoscaling Kubernetes node pools and pods on Oracle Cloud Native Environment. Whether you’re orchestrating or managing microservices or running data-intensive applications, autoscaling node pools and pods in Oracle Cloud Native Environment helps ensure that your deployment can handle fluctuating workloads without manual intervention.
There are two Kubernetes engine resources that provide autoscaling which are covered in the labs. One lab focuses on horizontal pod autoscaling (HPA) and the other focuses on vertical pod autoscaling (VPA).
The labs provide a comprehensive introduction to each component for automating pod scaling based on dynamic workloads. These labs are a must try for anyone looking to provide high availability and cost efficiency in their Kubernetes deployments.
Horizontal Pod Autoscaling Lab
The HorizontalPodAutoscaler (HPA) is the API resource for managing horizontal pod autoscaling, allowing Kubernetes to automatically deploy more pods to match variations in workload.
In this lab, you’ll learn to:
- Deploy Oracle Cloud Native Environment
- Install the metrics server
- Deploy a sample application
- Create and test the HPA
- Observe the HPA response to increasing CPU load
- Observe the HPA response to decreasing CPU load
The HorizontalPodAutoscaler can help applications scale out to meet increased demand, or scale in when resources are no longer needed.
For a detailed guide including the benefits and limitations of HPA, review the lab instructions:
Use Horizontal Pod Autoscaling with Oracle Cloud Native Environment
Vertical Pod Autoscaling Lab
The VerticalPodAutoscaler (VPA) is the custom resource object designed to optimize the allocation of CPU and memory resources available to deployed pods based on their usage.
The Vertical Pod Autoscaling lab takes a closer look at resource optimization for individual pods. In this lab, you will:
- Deploy Oracle Cloud Native Environment
- Install the metrics server
- Install the Vertical Pod Autoscaler
- Deploy a sample application
- Observe VPA as it optimizes the pod’s resources
- Review VPA recommendations for optimal pod performance
This lab is an excellent opportunity to learn firsthand how the VerticalPodAutoscaler can fine‑tune your resource requests and limits for containers running in a deployment’s pods.
For a detailed guide including the benefits and limitations of VPA, review the lab instructions:
Use Vertical Pod Autoscaling with Oracle Cloud Native Environment
Getting Started
The labs are hosted on Oracle’s Luna Lab environment and are designed to provide a free, hands-on learning experience from your browser.
Ready to try these labs? Get started here:
- Use Horizontal Pod Autoscaling with Oracle Cloud Native Environment
- Use Vertical Pod Autoscaling with Oracle Cloud Native Environment