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.
Enabling nested virtualization
Installation of Hyper-V
- Once you enabled the Nested Virtualization, Login into your VM through Remote Desktop.
- We have already installed Hyper-V service for this demo.
- Open the web browser and download the kubectl.exe file.
- To find the latest version of kubectl click here.
- Copy the Kubectl.exe file to %systemroot%\system32 folder.
- By default, environment variable path was set for the System32 folder.
- Open the web browser and access the recommended URL https://github.com/kubernetes/minikube/releases
- Download the latest version of minikube for windows 64 bit.
- Rename the filename from minikube-windows-amd64 to minikube.exe.
- Copy the minikube.exe file to %systemroot%\system32 folder.
Creating virtual switch in Hyper-V
- Open the Hyper-V Manager.
- Click on the Virtual Switch Manager option.
- Select the virtual switch type as Internal and Create button.
- Provide a name for the virtual switch. We set as Minikube for this demo. Then click on Apply button.
- After few seconds, the new virtual switch will be available in the list.
Enable Internet Connection Sharing
- From the VM desktop, Right-Click on the Network Icon and select open network connection and sharing center option.
- Click on the VM physical Ethernet that has the Internet connection.
- Switch to sharing tab.
- Select the Allow other network users to connect through this computer’s Internet connection checkbox and click OK.
- Open the Powershell (or) command prompt window and type the below command to verify the minikube version.
- Type the below command to start a minkube VM.
minikube start –vm-driver=hyperv –hyperv-virtual-switch=Minikube
- It will start downloading the ISO from the Google storage.
- The default location of minikube configuration is C:\Users\<username>\.minikube
- The ISO will be downloaded under cache folder.
- To can find the latest version of minikube ISO files click here.
- After few minutes, It launches a new VM and starts downloading the kubernetes binary for minikube VM.
- After few minutes, Fully working single node cluster is ready now.
- To list the nodes, use the below command.
- Use the below command to open the minikube dashboard.
- Click on Nodes option to verify its status.