-
Notifications
You must be signed in to change notification settings - Fork 72
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
feat: decrease minimum allowed size for OsDiskSizeGB from 100 to 30 #688
base: main
Are you sure you want to change the base?
Conversation
@microsoft-github-policy-service agree |
We experience many performance incidents regarding disk sizes smaller than 100gb, can you provide more justification as to why you want to reduce the limit? |
One example is running a staging environment (like we do, we run two mirror kubernetes for staging and production) where availability is not crucial and we can tolerate destroying a node if any problem arises. A 100GB disk will allocate a Premium SSD class P10 (128GB) by default on certain Azure tiers, which is 4 times as expensive as a P4 (32GB) disk. There are a lot of instances which do not have (and we don't plan to use) ephemereal disk, or as everyone calls it, local NVME storage. Managed disks are enough and having 5 inexpensive instances running 128GB P10 disks can sometimes cost more in storage than in machines, which is not the smartest of the choices in my opinion. The default should stay the same, just allow a configuration for users. PLUS, Azure mandates a 100GB minimum storage for Windows machines, but a 30GB minimum storage for Ubuntu machines. (Just as a comparison, our two other cloud providers runs the same workloads on total 8GB OS disk for each node, or 20GB just for having more room for docker images pull) |
What kind of performance incidents? Are they related to disk performance? |
+1 for this. The client should have the freedom (and indeed it's the client's responsibility) to define their infrastructure requirements, without facing such opinionated defaults and constraints |
Agree with this. Let the user define infrastructure requirements, pls. |
Maybe related to #518 |
516bef6
to
f35dc73
Compare
@Bryce-Soghigian hei Bryce, sorry to bother you. Can you give us a feedback please? |
tangentially related to this change, CC: @tallaxes ![]() Perhaps we should be doing better defaulting based on vcpu unless the user specifed the disk size in their nodeclass? |
Let's match what AKS is currently doing - at least for minimum, but possibly (and maybe separately) for default as well. @Bryce-Soghigian, please also check GB vs GiB just in case. |
Fixes #
Description
Karpenter supports deploying linux only instances and the minimum disk size allowed for these is 30GB. The changes I am proposing allow Karpenter to request VMs with a minimum OSDiskSize of 30GB instead of 100GB
How was this change tested?
Manually modified AKSNodeClass CRD on my company staging cluster and let karpenter deploy successfully a VM with OSDiskSize less than 100
*
Does this change impact docs?
Release Note