Windows

Prerequisites

  • Windows 8 or above
  • A hypervisor, such as Hyper-V or VirtualBox
  • Hardware virtualization support must be enabled in BIOS
  • 4GB of RAM

Installation

Download and run the minikube installer

If the Chocolatey Package Manager is installed, use it to install minikube:

choco install minikube

After it has installed, close the current CLI session and reopen it. minikube should have been added to your path automatically.

Hypervisor Setup

To check if virtualization is supported, run the following command on your Windows terminal or command prompt.

systeminfo

If you see the following output, virtualization is supported:

Hyper-V Requirements:     VM Monitor Mode Extensions: Yes
                          Virtualization Enabled In Firmware: Yes
                          Second Level Address Translation: Yes
                          Data Execution Prevention Available: Yes

If you see the following output, your system already has a Hypervisor installed and you can skip the next step.

Hyper-V Requirements:     A hypervisor has been detected.

Requirements

Enabling Hyper-V

Open a PowerShell console as Administrator, and run the following command:

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All

If Hyper-V was not previously active, you will need to reboot.

Usage

minikube start --vm-driver=hyperv 

To make hyperv the default driver:

minikube config set vm-driver hyperv

Requirements

Usage

Start a cluster using the virtualbox driver:

minikube start --vm-driver=virtualbox

To make virtualbox the default driver:

minikube config set vm-driver virtualbox

Getting to know Kubernetes

Once started, you can use any regular Kubernetes command to interact with your minikube cluster. For example, you can see the pod states by running:

 kubectl get po -A

Increasing memory allocation

minikube only allocates 2GB of RAM by default, which is only enough for trivial deployments. For larger deployments, increase the memory allocation using the --memory flag, or make the setting persistent using:

minikube config set memory 4096

Where to go next?

Visit the examples page to get an idea of what you can do with minikube.

📣😀 Please fill out our fast 5-question survey so that we can learn how & why you use minikube, and what improvements we should make. Thank you! 💃🏽🎉