How to install Minikube on Windows 2016 server?

Installing MiniKube On Windows 2016 Server

Installing MiniKube on Windows 2016 Server

Minikube is a tool that allows you to run Kubernetes clusters locally, making it easy to develop and test applications. In this guide, we will walk you through the process of installing Minikube on a Windows 2016 server.

Requirements

Enabling nested virtualization

Installing MiniKube on Windows 2016 Server

Installation of Hyper-V

  • Once you enabled the Nested Virtualization, Login into your VM through Remote Desktop.
Installing MiniKube on Windows 2016 Server
  • We have already installed Hyper-V service for this demo.
Installing MiniKube on Windows 2016 Server

DOWNLOAD KUBECTL

  • Open the web browser and download the kubectl.exe file. 
Installing MiniKube on Windows 2016 Server
Installing MiniKube on Windows 2016 Server
Installing MiniKube on Windows 2016 Server
  • To find the latest version of kubectl click here.
Installing MiniKube on Windows 2016 Server
  • Copy the Kubectl.exe file to %systemroot%\system32 folder.
Installing MiniKube on Windows 2016 Server
  • By default, environment variable path was set for the System32 folder.
Installing MiniKube on Windows 2016 Server

Download Minikube

Installing MiniKube on Windows 2016 Server
  • Download the latest version of minikube for windows 64 bit.
Installing MiniKube on Windows 2016 Server
Installing MiniKube on Windows 2016 Server
  • Rename the filename from minikube-windows-amd64 to minikube.exe.
Installing MiniKube on Windows 2016 Server
Installing MiniKube on Windows 2016 Server
  • Copy the minikube.exe file to %systemroot%\system32 folder.
Installing MiniKube on Windows 2016 Server

Creating virtual switch in Hyper-V

  • Open the Hyper-V Manager.
Installing MiniKube on Windows 2016 Server
  • Click on the Virtual Switch Manager option.
Installing MiniKube on Windows 2016 Server
  • Select the virtual switch type as Internal and Create button.
Installing MiniKube on Windows 2016 Server
  • Provide a name for the virtual switch. We set as Minikube for this demo. Then click on Apply button.
Installing MiniKube on Windows 2016 Server
  • After few seconds, the new virtual switch will be available in the list.
Installing MiniKube on Windows 2016 Server

Enable Internet Connection Sharing

  • From the VM desktop, Right-Click on the Network Icon and select open network connection and sharing center option.
Installing MiniKube on Windows 2016 Server
  • Click on the VM physical Ethernet that has the Internet connection.
Installing MiniKube on Windows 2016 Server
Installing MiniKube on Windows 2016 Server
  • Switch to sharing tab.
Installing MiniKube on Windows 2016 Server
  • Select the Allow other network users to connect through this computer’s Internet connection checkbox and click OK.
Installing MiniKube on Windows 2016 Server

Installing Minikube

  • Open the Powershell (or) command prompt window and type the below command to verify the minikube version.

minikube version

Installing MiniKube on Windows 2016 Server
  • Type the below command to start a minkube VM.

minikube start –vm-driver=hyperv –hyperv-virtual-switch=Minikube

Installing MiniKube on Windows 2016 Server
  • It will start downloading the ISO from the Google storage.
Installing MiniKube on Windows 2016 Server
  • The default location of minikube configuration is C:\Users\<username>\.minikube
Installing MiniKube on Windows 2016 Server
  • The ISO will be downloaded under cache folder.
Installing MiniKube on Windows 2016 Server
  • To can find the latest version of minikube ISO files click here.
Installing MiniKube on Windows 2016 Server
  • After few minutes, It launches a new VM and starts downloading the kubernetes binary for minikube VM.
Installing MiniKube on Windows 2016 Server
  • After few minutes, Fully working single node cluster is ready now.
Installing MiniKube on Windows 2016 Server

Verification

  • To list the nodes, use the below command.
Installing MiniKube on Windows 2016 Server
  • Use the below command to open the minikube dashboard.

minikube dashboard

Installing MiniKube on Windows 2016 Server
  • Click on Nodes option to verify its status.
Installing MiniKube on Windows 2016 Server

Video Tutorial

View Post>>

View Post>>