Vertical Scaling Properties
Vertical scaling in Kubernetes refers to the process of adjusting the compute resources (CPU and memory) allocated to a single instance of a containerized application running on a Kubernetes cluster. Unlike horizontal scaling, which involves adding or removing instances of an application to handle varying levels of load, vertical scaling focuses on increasing or decreasing the capacity of individual instances.
Vertical Scaling Properties describes the vertical scaling properties:
Name | Description |
---|---|
vpa.enabled | Set this to true to enable vertical autoscaling. The default value is false . |
vpa.additionalLabels | Labels for the vertical pod autoscaler. |
vpa.annotations | Annotations for the vertical pod autoscaler. |
vpa.containerPolicies | Policies for individual containers. |
This is an example of a vertical scaling properties configuration:
vpa:
enabled: true
containerPolicies:
- containerName: '*'
minAllowed:
cpu: 0.5
memory: 1Gi
maxAllowed:
cpu: 1
memory: 5Gi