Minikube increase disk size

I did some more research and development with kubernetes and minikube. During some tests where the diskspace of one node got bigger than 16GB and I saw a message about DiskPressure in the logs, I figured out that minikube has a default disksize of something around 16GB.

But how should I test the kubernetes deployments with that small amount of diskspace? Sure, one possibility is to use a PersistentVolume. But what if I just want to get a bigger minikube diskspace?

Other possibility is to use a minikube parameter called --disk-size which configures the disksize in minikube.

`minikube start --vm-driver=kvm2 --insecure-registry=IP:PORT` --disk-size=XXGB

but minikube itself did not recognize the parameter and I still got the message about DiskPressure.

Like the --insecure-registry parameter, this one is also ignored if the machine (minikube) already existed. You have to delete minikube first if you want new parameters to take place.

So here we go:

minikube stop
minikube delete
minikube start --vm-driver=kvm2 --insecure-registry=IP:PORT --disk-size=XXGB
comments powered by Disqus