Minikube is a popular tool for running a single-node Kubernetes cluster locally on your machine. It provides a convenient way to set up and experiment with Kubernetes without the need for a full-scale cluster. To make the most out of Minikube, it’s essential to be familiar with its commands and their usage. In this article, we present a Minikube commands cheat sheet that can help developers navigate their Minikube workflows effectively.
Note: This cheat sheet assumes that Minikube is installed and properly configured on your system.
- Minikube Cluster Commands:
- minikube start: Start a local Minikube cluster.
- minikube stop: Stop the running Minikube cluster.
- minikube delete: Delete the Minikube cluster.
- minikube status: Display the status of the Minikube cluster.
- minikube dashboard: Open the Kubernetes dashboard in a web browser.
- Minikube Configuration Commands:
- minikube config set <property> <value>: Set a configuration property for Minikube.
- minikube config get <property>: Get the value of a specific configuration property.
- minikube config delete <property>: Delete a configuration property.
- minikube config view: View the current Minikube configuration.
- Minikube Add-On Commands:
- minikube addons list: List all available Minikube add-ons.
- minikube addons enable <addon>: Enable a specific Minikube add-on.
- minikube addons disable <addon>: Disable a specific Minikube add-on.
- Minikube Networking Commands:
- minikube service <service-name>: Open a service in a web browser.
- minikube ip: Get the IP address of the Minikube cluster.
- minikube ssh: SSH into the Minikube VM.
- Minikube Cluster Interactions:
- kubectl: The standard Kubernetes command-line tool for interacting with the cluster. All kubectl commands can be used with Minikube.
- Minikube Updates and Upgrades:
- minikube update-check: Check for available updates for Minikube.
- minikube update: Update Minikube to the latest version.
- minikube upgrade: Upgrade the Minikube cluster to the latest Kubernetes version.
- Minikube Troubleshooting:
- minikube logs: Print the logs of the Minikube cluster.
- minikube ssh: SSH into the Minikube VM for troubleshooting purposes.
Conclusion
This Minikube commands cheat sheet provides a quick reference for developers working with Minikube. By familiarizing themselves with these commands and their usage, developers can efficiently manage their Minikube clusters, configure settings, interact with the cluster using kubectl, and troubleshoot issues. Remember to refer to Minikube’s official documentation for more in-depth explanations and advanced usage of these commands. With this cheat sheet, developers can streamline their Minikube workflows and leverage the power of local Kubernetes clusters for application development and testing.