-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Exiting due to RSRC_INSUFFICIENT_SYS_MEMORY: System only has 0MiB available, less than the required 1800MiB for Kubernetes #10538
Comments
Sounds like a bug, can you post the output of |
Can also try this sample code package main
import (
"fmt"
"github.com/shirou/gopsutil/v3/mem"
)
func main() {
v, _ := mem.VirtualMemory()
fmt.Printf("Total: %v, Free:%v, UsedPercent:%f%%\n", v.Total, v.Free, v.UsedPercent)
} |
@afbjorklund Can I work on this? I faced the same issue |
/assign |
free -m output:
output of cat /proc/meminfo
|
Thank you, that looks more normal. It's still too small to run minikube, but it's not zero... You need 2 GB RAM in the VM (and also 2 vCPU as well), rather than the current 1 GB. |
@BLasan The bug is here: if sysLimit < minUsableMem {
exitIfNotForced(reason.RsrcInsufficientSysMemory, "System only has {{.size}}MiB available, less than the required {{.req}}MiB for Kubernetes", out.V{"size": containerLimit, "driver": drvName, "req": minUsableMem})
} Should use sysLimit, not containerLimit. The second value is only relevant to KIC. |
Thank you @afbjorklund. I did not realize the minimium require for minikube. I got it now! Thank you again! |
We try to mention it here: https://minikube.sigs.k8s.io/docs/start/ but the code is supposed to verify it... It's a bit confusing since it talks about the memory total after the system and kernel take their share. |
Yuh. Thanks for pointing us. Shall I send a PR for this? |
Please do, the current message is confusing |
Steps to reproduce the issue:
I am doing according to this instruction exactly
https://phoenixnap.com/kb/install-minikube-on-ubuntu
Then I am failed at this step:
minikube start
Full output of failed command:
😄 minikube v1.17.1 on Ubuntu 20.04 (vbox/amd64)
✨ Automatically selected the docker driver
⛔ Exiting due to RSRC_INSUFFICIENT_SYS_MEMORY: System only has 0MiB available, less than the required 1800MiB for Kubernetes
Full output of
minikube start
command used, if not already included:😄 minikube v1.17.1 on Ubuntu 20.04 (vbox/amd64)
✨ Automatically selected the docker driver
⛔ Exiting due to RSRC_INSUFFICIENT_SYS_MEMORY: System only has 0MiB available, less than the required 1800MiB for Kubernetes
Optional: Full output of
minikube logs
command:The text was updated successfully, but these errors were encountered: