- Kubernetes for Serverless Applications
- Russ McKendrick
- 265字
- 2021-07-02 19:16:50
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.
- MCSA Windows Server 2016 Certification Guide:Exam 70-741
- 自動檢測與轉換技術
- 自動生產線的拆裝與調試
- CompTIA Network+ Certification Guide
- 貫通Java Web開發三劍客
- Practical Big Data Analytics
- Windows Server 2008 R2活動目錄內幕
- 邊緣智能:關鍵技術與落地實踐
- 電氣控制與PLC原理及應用(歐姆龍機型)
- Learning Linux Shell Scripting
- 數據要素:全球經濟社會發展的新動力
- 人工智能:智能人機交互
- 計算智能算法及其生產調度應用
- 漢字錄入技能訓練
- 從祖先到算法:加速進化的人類文化