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
Allow allocating storage capacity based on instance type #1995
Comments
Hey @tonylsw, |
Hello, I believe he means the following (which is my case): Either some pods generate a lot of noise (logs/stuff that doesn't need to be saved in a separate disk), or that some containers use a lot of disk space. For example, I have a client that has ONE docker image over 5GB compressed (they have the whole environment, GPU drivers and a lot of stuff) and they just can't be deployed because it instantly taints the host machine as not having enough disk. Having the ability to specify the default "root space" for the machines instead of the default 20G would be appreciated. (In my case, the pod gets evicted as it tries to run and the node gets tainted with DiskPressure) Now I noticed as I re-read the original post that we might have different ideas, but they have a common solution. Let's see where we get to! |
Hi @dewjam ideally, we'd like to have a solution to scale up/down node storage on-demand, much like Karpenter does for pod :-) , short of that, we'd like to allocate storage based on instance type for container images. |
@dewjam Do we have any news regarding this/these (maybe they can be considered different) features? |
Hey @carlesjavierre , |
@tonylsw, one feature we've considered is dynamically scaling node storage based on the ephemeral-storage requested by incoming pods. So for example, if you were to spawn 5 pods each with a request for 20GB of ephemeral-storage, then Karpenter will provision a node with 100GB + overhead to accomodate those pods. I'm curious what your thoughts are on this potential feature. |
Closing this in favor of #2394 |
Tell us about your request
When using custom launch template with Karpenter, a single node storage capacity (specified in the launch template) is used by all types of instances launched by Karpenter. We'd like to able to allocate storage capacity based on instance type.
For example:
m5.xlarge: /dev/sdf=100
m5.2xlarge /dev/sdf=200
Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?
Currently Karpenter using a single volume capacity for all types of instances, it's not possible to allocate volume based on instance type.
Using multiple provisioners, one for each instance type, can support this, but the instance launched in such case is undeterministic
and not optimal.
Are you currently working around this issue?
Have to specify the maximum volume size in the launch template in order to avoid running out of disk.
Community Note
The text was updated successfully, but these errors were encountered: