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.
- Please check this URL https://www.assistanz.com/nested-virtualization-windows-2016/ for more information
INSTALLING 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.
DOWNLOAD KUBECTL
- Open the web browser and access the URL https://storage.googleapis.com/kubernetes-release/release/v1.9.0/bin/windows/amd64/kubectl.exe and download the file to your desktop.
- You can find the latest version of kubectl from the kubernetes official URL https://kubernetes.io/docs/tasks/tools/install-kubectl/
- Copy the Kubectl.exe file to %systemroot%\system32 folder.
- By default, environment variable path was set for the System32 folder.
DOWNLOAD MINIKUBE
- Open the web browser and access the 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.
- Click on the Properties button.
- Switch to sharing tab.
- Select the Allow other network users to connect through this computer’s Internet connection checkbox and click OK.
INSTALLING MINIKUBE
- Open the Powershell (or) command prompt window and type the below command to verify the minikube version.
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.
- You can find the latest version of minikube ISO files at https://storage.googleapis.com/minikube/ URL.
- 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.
VERIFICATION
- To list the nodes, use the below command.
kubectl get nodes
- Use the below command to open the minikube dashboard.
minikube dashboard
- Click on Nodes option to verify its status.
VIDEO
Thanks for reading this blog. We hope it was useful for you about installing MiniKube on Windows 2016 server.