Installing MiniKube On Windows 2016 Server

Installing MiniKube on Windows 2016 Server

In this blog, we will show you the steps to installing Minikube on Windows 2016 Server.

REQUIREMENTS

Windows 2016 VM with Internet Connection

Hyper-V

ENABLE NESTED VIRTUALIZATION

We have created a new VM in windows 2016 HOST and enabled the Nested virtualization.

Nested Virtualization is a feature which is available on Windows 2016 server edition.

It allows you run Hyper-V inside of a Hyper-V VM.

We have already enabled the virtualization for our demo VM.

Installing MiniKube on Windows 2016 Server

INSTALLING 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

Installing MiniKube on Windows 2016 Server
Installing MiniKube on Windows 2016 Server
Installing MiniKube on Windows 2016 Server
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
  • Click on the Properties button.
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
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.

kubectl get nodes

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

Thanks for reading this blog. We hope it was useful for you about installing MiniKube on Windows 2016 server.

Loges

Leave a Reply

Your email address will not be published. Required fields are marked *