Minikube - how to increase ephemeral storage

一曲冷凌霜 提交于 2020-08-23 11:31:35

问题


I am trying to set up a copy of our app on my development machine using minikube. But I get an error showing up in minikube dashboard:

0/1 nodes are available: 1 Insufficient ephemeral-storage

Any ideas as to how I fix this?

The relevant part of the yaml configuration file looks like so:

    resources:
      requests:
        memory: 500Mi
        cpu: 1
        ephemeral-storage: 16Gi
      limits:
        memory: 4Gi
        cpu: 1
        ephemeral-storage: 32Gi 

I have tried assigning extra disk space at startup with the following but the error persists:

minikube start --disk-size 64g

回答1:


The issue is that minikube can't resize the VM disk.

Depending on the type Hypervisor driver (xhyve, virtualbox, hyper-v) and disk type (qcow2, sparse, raw, etc.) resizing the VM disk will be different. For example, for if you have:

/Users/username/.minikube/machines/minikube/minikube.rawdisk

You can do something like this:

$ cd /Users/username/.minikube/machines/minikube
$ mv minikube.rawdisk minikube.img
$ hdiutil resize -size 64g minikube.img
$ mv minikube.img minikube.rawdisk
$ minikube start
$ minikube ssh

Then in the VM:

$ sudo resize2fs /dev/vda1 # <-- or the disk of your VM

Otherwise, if you don't care about the data in your VM:

$ rm -rf ~/.minikube
$ minikube start --disk-size 64g


来源:https://stackoverflow.com/questions/54186027/minikube-how-to-increase-ephemeral-storage

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!