Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
andrii29 opened this issue Feb 21, 2025 · 1 comment
Open

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

andrii29 opened this issue Feb 21, 2025 · 1 comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@andrii29
Copy link

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.

@torredil
Copy link
Member

/retitle [Feature Request] Volume Autoscaling (Resize EBS Disk Size)
/kind feature

@k8s-ci-robot k8s-ci-robot changed the title Volume Autoscaling (Resize EBS Disk Size) [Feature Request] Volume Autoscaling (Resize EBS Disk Size) Feb 21, 2025
@k8s-ci-robot k8s-ci-robot added the kind/feature Categorizes issue or PR as related to a new feature. label Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

3 participants