minikube start
- Docker & Kubernetes course
- Intermediate
- Lesson 9/82
- 4 min
Learn to start the cluster with minikube start.
minikube start
minikube start creates the cluster or restarts a stopped one, and points kubectl at it. You can choose the resources and the number of nodes:
minikube start --cpus=4 --memory=8g
minikube start --nodes=3 -p cok-dugum # a separate profile with 3 nodes
minikube stop # stop (data stays)
minikube delete # delete completelySeveral independent clusters can be kept with -p (profile).
Add-ons
Minikube installs frequently used components as add-ons with a single command: ingress controller, metrics-server, dashboard, registry...
$ minikube addons list | head -5
| ADDON NAME | PROFILE | STATUS |
| dashboard | minikube | disabled |
| ingress | minikube | disabled |
| metrics-server | minikube | disabled |
$ minikube addons enable metrics-server
$ minikube addons enable ingressPractice A powerful local cluster
Write three commands: start Minikube with 4 CPUs and 8g memory; enable the metrics-server add-on; enable the ingress add-on.
Starter code
# buraya yazSample solution
minikube start --cpus=4 --memory=8g
minikube addons enable metrics-server
minikube addons enable ingressExpected output
🏄 Done! kubectl is now configured to use "minikube" cluster 🌟 The 'metrics-server' addon is enabled 🌟 The 'ingress' addon is enabled
Questions and answers
Review the lesson questions together with their answers. To test yourself, solve the lesson interactively.
1 What is the difference between minikube stop and minikube delete?
- They are the same
- delete only removes pods
- stop uninstalls kubectl
- stop halts and keeps the state; delete removes the cluster completely Correct answer
Explanation: stop is enough to free up resources.
2 Enable the metrics-server add-on.
minikube addons ____ metrics-server
minikube addons enable metrics-server
Explanation: enable/disable turns the add-on on/off.
3 Match.
| Term | Meaning |
|---|---|
--cpus/--memory |
Resource setting |
--nodes=3 |
Multi-node cluster |
-p |
Profile |
addons enable |
Install an add-on |