官术网_书友最值得收藏!

Stop and delete

As we are running our single-node Kubernetes cluster as a virtual machine on your host, you may not want it running all of the time, using resources.

There are two options to achieve this, the first of which is minikube stop. This command will stop your node and keep the virtual machine intact. You should use this command if you plan on picking up where you left off when you next start your node by running minikube start.

While the minikube stop command stops your virtual machine from using CPU and RAM resources on the host machine, the hard disk image used to host the virtual machine will still be present on your machine. While a freshly launched cluster does not take much space on the host hard drive, on my macOS installation it is around 650 MB; as soon as you start to use the cluster, you may find that this space will at least double.

This is where our next command comes in. The minikube delete command will remove the cluster completely, including all of the virtual machine files, freeing the space used on the host machine.

At the time of writing, running minikube delete will immediately remove your machine, running or not. There is no prompt asking if you are sure, or any way back from the command (unless you have backups), so please ensure that you use this command with caution.

When you run minikube start again, your cluster will be started from scratch again, as we first experienced in the previous section.

主站蜘蛛池模板: 邵武市| 沭阳县| 新民市| 南漳县| 南岸区| 弋阳县| 建昌县| 青铜峡市| 合川市| 南华县| 衡东县| 城步| 宜都市| 福州市| 安塞县| 上蔡县| 三原县| 岳阳县| 吉木萨尔县| 祥云县| 南靖县| 沈丘县| 随州市| 政和县| 诸城市| 青川县| 合阳县| 通州区| 卫辉市| 咸宁市| 米林县| 灵武市| 左云县| 苏尼特左旗| 丹江口市| 梁平县| 广德县| 宁阳县| 特克斯县| 乌审旗| 石嘴山市|