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

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.

主站蜘蛛池模板: 漳州市| 平泉县| 蒙阴县| 庆元县| 镇巴县| 庆元县| 建水县| 肥城市| 呼图壁县| 伽师县| 多伦县| 昌黎县| 滨州市| 葫芦岛市| 绿春县| 儋州市| 陆良县| 红安县| 江油市| 平昌县| 台湾省| 鄂温| 若尔盖县| 安西县| 衡南县| 康定县| 平邑县| 林甸县| 论坛| 中山市| 五华县| 夏邑县| 班玛县| 高尔夫| 普宁市| 扶余县| 若羌县| 团风县| 突泉县| 香格里拉县| 玉环县|