Skip to content

Instantly share code, notes, and snippets.

@ethanbayliss
Created February 21, 2024 02:58
Show Gist options
  • Save ethanbayliss/0e240ac80609aed49cbf2932fef29fc0 to your computer and use it in GitHub Desktop.
Save ethanbayliss/0e240ac80609aed49cbf2932fef29fc0 to your computer and use it in GitHub Desktop.
Calculating AKS kube-reserved memory limits for AKS pre-1.29
25% of the first 4GB of memory
20% of the next 4GB of memory (up to 8GB)
10% of the next 8GB of memory (up to 16GB)
6% of the next 112GB of memory (up to 128GB)
2% of any memory above 128GB
# Google sheets formula
=if(AND(J3>0,J3<=4),0.25*J3,if(J3>=4,4*0.25)+
if(AND(J3>4,J3<=8),0.2*(J3-4),if(J3>=8,4*0.2)))+
if(AND(J3>8,J3<=16),0.1*(J3-8),if(J3>=16,8*0.1))+
if(AND(J3>16,J3<=112),0.06*(J3-16),if(J3>=112,16*0.06))+
if(J3>=128,J3-128*0.02)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment