Skip to content

[Feature Request] Volume Autoscaling (Resize EBS Disk Size) #2354

Open
@andrii29

Description

@andrii29

Is your feature request related to a problem? Please describe.
AWS EBS volumes support increasing disk size, but this must be done manually. Currently, this process is not automated. When the final storage requirements of an application are uncertain, it's preferable to allocate less storage initially and scale up as needed.

Describe the solution you'd like in detail
There are existing Kubelet metrics that can be used to calculate disk usage:

(kubelet_volume_stats_capacity_bytes - kubelet_volume_stats_available_bytes) / kubelet_volume_stats_capacity_bytes

These metrics can be retrieved from the kube-prometheus-stack by providing a Prometheus URL or directly from Kubelet using ebs-csi-node DaemonSet. Based on these metrics, storage autoscaling can be implemented. For example, when storage usage exceeds 75% (a configurable threshold), the CSI driver should automatically increase the disk size by 20%.

Describe alternatives you've considered
Create an alert for PV disk usage and manually update the PVC.

Additional context
In dynamic cloud environments, supporting storage autoscaling would help optimize resource allocation and reduce costs by avoiding unnecessary over-provisioning.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions