🛡️
CTHFM: Kubernetes
  • Welcome
  • Kubernetes Fundamentals
    • Kubernetes Components
      • Kubernetes Master Node
      • Worker Nodes
      • Pods
      • Service
      • ConfigMaps and Secrets
      • Namespaces
      • Deployments
      • ReplicaSets
      • Jobs and CronJobs
      • Horizontal Pod Autoscaler (HPA)
      • Kubernetes Ports and Protocols
    • Kubectl
      • Installation and Setup
      • Basic Kubectl
      • Working With Pods
      • Deployments and ReplicaSets
      • Services and Networking
      • ConfigMaps and Secrets
      • YAML Manifest Management
      • Debugging and Troubleshooting
      • Kubectl Scripting: Security
      • Customizing Kubectl
      • Security Best Practices
      • Common Issues
      • Reading YAML Files
    • MiniKube
      • Intro
      • Prerequisites
      • Installation MiniKube
      • Starting MiniKube
      • Deploy a Sample Application
      • Managing Kubernetes Resources
      • Configuring MiniKube
      • Persistent Storage in Minikube
      • Using Minikube for Local Development
      • Common Pitfalls
      • Best Practices
  • Kubernetes Logging
    • Kubernetes Logging Overview
    • Audit Logs
    • Node Logs
    • Pod Logs
    • Application Logs
    • Importance of Logging
    • Types of Logs
    • Collecting and Aggregating Logs
    • Monitoring and Alerting
    • Log Parsing and Enrichment
    • Security Considerations in Logging
    • Best Practices
    • Kubernetes Logging Architecture
  • Threat Hunting
    • Threat Hunting Introduction
    • What Makes Kubernetes Threat Hunting Unique
    • Threat Hunting Process
      • Hypothesis Generation
      • Investigation
      • Identification
      • Resolution & Follow Up
    • Pyramid of Pain
    • Threat Frameworks
      • MITRE Containers Matrix
        • MITRE Att&ck Concepts
        • MITRE Att&ck Data Sources
        • MITRE ATT&CK Mitigations
        • MITRE Att&ck Containers Matrix
      • Microsoft Threat for Kubernetes
    • Kubernetes Behavioral Analysis and Anomaly Detection
    • Threat Hunting Ideas
    • Threat Hunting Labs
  • Security Tools
    • Falco
      • Falco Overview
      • Falco's Architecture
      • Runtime Security Explained
      • Installation and Setup
      • Falco Rules
      • Tuning Falco Rules
      • Integrating Falco with Kubernetes
      • Detecting Common Threats with Falco
      • Integrating Falco with Other Security Tools
      • Automating Incident Response with Falco
      • Managing Falco Performance and Scalability
      • Updating and Maintaining Falco
      • Real-World Case Studies and Lessons Learned
      • Labs
        • Deploying Falco on a Kubernetes Cluster
        • Writing and Testing Custom Falco Rules
        • Integrating Falco with a SIEM System
        • Automating Responses to Falco Alerts
    • Open Policy Agent (OPA)
      • Introduction to Open Policy Agent (OPA)
      • Getting Started with OPA
      • Rego
      • Advanced Rego Concepts
      • Integrating OPA with Kubernetes
      • OPA Gatekeeper
      • Policy Enforcement in Microservices
      • OPA API Gateways
      • Introduction to CI/CD Pipelines and Policy Enforcement
      • External Data in OPA
      • Introduction to Decision Logging
      • OPA Performance Monitoring
      • OPA Implementation Best Practices
      • OPA Case Studies
      • OPA Ecosystem
    • Kube-Bench
    • Kube-Hunter
    • Trivy
    • Security Best Practices and Documentation
      • RBAC Good Practices
      • Official CVE Feed
      • Kubernetes Security Checklist
      • Securing a Cluster
      • OWASP
  • Open Source Tools
    • Cloud Native Computing Foundation (CNCF)
      • Security Projects
  • Infrastructure as Code
    • Kubernetes and Terraform
      • Key Focus Areas for Threat Hunters
      • Infastructure As Code: Kubernetes
      • Infrastructure as Code (IaC) Basics
      • Infastructure As Code Essential Commands
      • Terraform for Container Orchestration
      • Network and Load Balancing
      • Secrets Management
      • State Management
      • CI/CD
      • Security Considerations
      • Monitoring and Logging
      • Scaling and High Availability
      • Backup and Disaster Recovery
    • Helm
      • What is Helm?
      • Helm Architecture
      • Write Helm Charts
      • Using Helm Charts
      • Customizing Helm Charts
      • Customizing Helm Charts
      • Building Your Own Helm Chart
      • Advanced Helm Chart Customization
      • Helm Repositories
      • Helm Best Practices
      • Helmfile and Continuous Integration
      • Managing Secrets with Helm and Helm Secrets
      • Troubleshooting and Debugging Helm
      • Production Deployments
      • Helm Case Studies
Powered by GitBook
On this page
  • Installing Minikube
  • 1. Downloading and Installing Minikube
  • Installing Minikube on Windows:
  • Installing Minikube on macOS:
  • Installing Minikube on Linux:
  • 2. Starting Your First Minikube Cluster
  • Step 1: Start Minikube
  • Step 2: Verify the Cluster is Running
  • 3. Accessing the Minikube Dashboard
  • Step 1: Launch the Dashboard
  • Step 2: Explore the Dashboard
  • 4. Stopping and Deleting Minikube
  • Step 1: Stop Minikube
  • Step 2: Delete Minikube
  1. Kubernetes Fundamentals
  2. MiniKube

Installation MiniKube

PreviousPrerequisitesNextStarting MiniKube

Last updated 9 months ago

Installing Minikube

In this lesson, we will walk through the process of installing Minikube on different operating systems—Windows, macOS, and Linux. By the end of this lesson, you will have Minikube installed and ready to run your first local Kubernetes cluster.

1. Downloading and Installing Minikube

Minikube can be installed using package managers, directly via a downloadable binary, or through other methods specific to your operating system.


Installing Minikube on Windows:

Step 1: Install a Hypervisor

  • Ensure that Hyper-V or another supported hypervisor (like VirtualBox or Docker) is installed and enabled.

  • If using Hyper-V:

    • Enable Hyper-V via the "Windows Features" menu.

    • Restart your machine if required.

Step 2: Download Minikube

  • Open PowerShell or Command Prompt as an Administrator.

  • Run the following command to download and install Minikube:

    choco install minikube
    • If you don't have Chocolatey installed, you can download the Minikube binary directly from the and add it to your PATH.

Step 3: Verify Installation

  • After installation, verify that Minikube is installed by running:

    minikube version
    • This command should display the version of Minikube installed on your system.


Installing Minikube on macOS:

Step 1: Install a Hypervisor

  • You can use Docker Desktop, HyperKit, or VirtualBox. Docker Desktop is recommended as it integrates well with Minikube.

  • Install Docker Desktop by downloading it from the Docker website.

Step 2: Install Minikube via Homebrew

  • Open your Terminal and run the following command to install Minikube using Homebrew:

    brew install minikube

Step 3: Verify Installation

  • Verify that Minikube is installed by running:

    minikube version
    • This command should show the installed Minikube version.


Installing Minikube on Linux:

Step 1: Install a Hypervisor

  • KVM, VirtualBox, or Docker are common choices for Linux. For high performance, KVM is recommended.

  • To install KVM, run the following commands:

    sudo apt-get install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils
    sudo apt-get install virt-manager
    sudo systemctl enable libvirtd
    sudo systemctl start libvirtd

Step 2: Download and Install Minikube

  • You can install Minikube using a package manager or by downloading the binary.

    Using a Package Manager (Debian/Ubuntu):

    curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube_latest_amd64.deb
    sudo dpkg -i minikube_latest_amd64.deb

    Using Binary Download:

    Curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
    sudo install minikube-linux-amd64 /usr/local/bin/minikube

Step 3: Verify Installation

  • Check that Minikube is properly installed by running:

    minikube version
    • This command will display the installed Minikube version.


2. Starting Your First Minikube Cluster

After installing Minikube, the next step is to start your first Kubernetes cluster.

Step 1: Start Minikube

  • Open your terminal or command prompt and start Minikube by running:

    minikube start
    • This command will create and start a local Kubernetes cluster. By default, Minikube will choose the best virtualization option based on your system.

Step 2: Verify the Cluster is Running

  • To check if your cluster is running correctly, use the following command:

    kubectl get nodes
    • You should see a single node listed, indicating that Minikube has successfully started the cluster.


3. Accessing the Minikube Dashboard

Minikube comes with a built-in Kubernetes dashboard that provides a web-based UI to interact with your cluster.

Step 1: Launch the Dashboard

  • To launch the dashboard, run:

    minikube dashboard
    • This command will open the Kubernetes dashboard in your default web browser.

Step 2: Explore the Dashboard

  • Use the dashboard to explore various Kubernetes components like Pods, Deployments, and Services. The dashboard is a great tool for visualizing and managing your cluster.


4. Stopping and Deleting Minikube

If you want to stop the Minikube cluster or delete it altogether:

Step 1: Stop Minikube

  • To stop the Minikube cluster without deleting it, run:

    minikube stop

Step 2: Delete Minikube

  • To delete the Minikube cluster, use:

    minikube delete

If you don’t have Homebrew installed, you can install it from , or download the Minikube binary directly from the and add it to your PATH.

Download the latest release of Minikube from the and install it:

official Minikube releases page
brew.sh
official Minikube releases page
official releases page