Minikube Command Examples – The


Minikube is a powerful tool designed to facilitate local development and testing of Kubernetes clusters. Kubernetes is an open-source container orchestration platform used to automate the deployment, scaling, and management of containerized applications. While Kubernetes is typically deployed in production environments or cloud platforms, Minikube enables developers to run Kubernetes clusters locally on their machines for development, testing, and experimentation purposes.

Key features and functionalities of Minikube include:

  • local kubernetes cluster: Minikube allows developers to build and run lightweight, single-node Kubernetes clusters on their local machine. It provides all the essential components of Kubernetes, including the cluster control plane, worker nodes, and networking, enabling developers to simulate a production-like Kubernetes environment locally.
  • Easy setup and installationMinikube simplifies the process of installing and configuring a local Kubernetes cluster. It provides a command-line interface (CLI) with intuitive commands to start, stop, and manage a Minikube cluster. Additionally, Minikube supports multiple operating systems, including Linux, macOS, and Windows, making it accessible to a wide range of developers.
  • Isolation and sandbox environment: Minikube creates an isolated environment to run a Kubernetes cluster, allowing developers to experiment with different configurations and test applications without impacting their production environment. This sandbox environment ensures that changes and experiments can be done safely without affecting other systems or resources.
  • Support for Kubernetes features: Minikube supports various Kubernetes features and functionalities, including deploying and managing containers using Kubernetes manifests, interacting with the Kubernetes API, and configuring cluster settings such as resource limits, networking, and storage options.
  • Integration with development workflow: Minikube integrates seamlessly with existing development workflows and tools commonly used by Kubernetes developers. It supports container runtimes like Docker and container orchestration tools like kubectl, allowing developers to deploy, manage, and debug applications on a Minikube cluster using familiar tools and workflows.
  • extensibility and customizationMinikube provides the flexibility to customize and extend a local Kubernetes environment to meet specific needs. Developers can configure Minikube settings, such as CPU and memory allocation, networking mode, and Kubernetes version, to match their development needs and preferences.
  • Documentation and Community SupportMinikube is supported by extensive documentation, tutorials, and community resources, including forums, mailing lists, and a GitHub repository. This strong support ecosystem provides support and guidance to developers using Minikube for Kubernetes development and testing.
  • open sourceMinikube is an open-source project maintained by the Kubernetes community and hosted on GitHub under the Kubernetes organization. Its source code is freely available for inspection, modification, and contribution by developers around the world.

minikube command example

1. Start the cluster:

2. Get the IP address of the cluster:

3. Access the service named my_service exposed through the node port and get the URL:

# minikube service [my_service] --url

4. Open the Kubernetes dashboard in a browser:

5. Stop the running cluster:

6. Delete Cluster:


In short, Minikube is a valuable tool for developers working with Kubernetes who need a local environment for development, testing, and experimentation. Its ease of use, flexibility, and integration with Kubernetes features make it an essential component of the Kubernetes development workflow, enabling developers to build and test containerized applications with confidence.

Add comment

By Ranjan