How to Install Kubernetes on Windows 10?
Tags: kubernetes, devops, cloudnative, opensource
Published: 2021-12-16 03:54:41


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xtepgg3wkusql7hwb09p.png)
Kubernetes or K8s is an open-source platform to manage containerized workloads and applications. With containers, it's easy to manage, run or ship your application. Kubernetes helps to manage cloud resources and makes your cloud infrastructure more scalable by automating and deploying applications in no time. While installing Kubernetes for the first time, these are the steps I followed on my Windows 10 home. Let’s explore each of them:

## Setting up Hyper-V

Hyper-V is window's own virtualization software same as Virtualbox. If you are using windows home, you need to install Hyper-V. Here is the article for that. After installing, follow these steps to enable Hyper-V on your local machine.
1.	Open search bar and go to control panel
2.	On the left side of the control panel, click on program and then on programs and features.
3.	Turn on the Windows features on and off.
4.	Check on the Hyper-V and Windows Hypervision Platform, click the OK button.
5.	It may take a few minutes to install Hyper-V on the system, in some cases, your system will reboot itself a couple of times. 
6.	To verify the successful installation of Hyper-V on Windows, open windows Powershell, run it as an administrator, and paste the below command.
Get-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bjrojkx1iowob16lk8ia.png)

## Installing Docker on Windows 10

You can install any alternatives of docker like Containerd, RunC, Podman, and many more to mention. Although I am installing Kubernetes for the first time in the system, I used the Docker desktop. Click here to go to the official website of docker and click on Get Docker Desktop. Follow the instructions while installing and you are ready to run Docker on your machine.

## Installing Kubernetes on Windows 10

Follow these steps to install Kubernetes on windows 10 seamlessly. 
1.	Open the Docker GUI tool and click on Settings.
2.	On the left plane, click on Kubernetes and check on Enable Kubernetes
Apply the changes, wait for 5 to 10 minutes, or until the installation complete popup message is shown up on the screen.
To confirm the running of Kubernetes, hover your mouse pointer on the down left side of the Docker desktop plane, you will see “Kubernetes Running” message.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5vnqu7hg8il4syji06a3.jpg)

## Accessing Kubernetes UI

Kubernetes UI is not installed by default. It’s a web-based interface and can be accessed via a web browser. Open the command prompt and paste the given script to deploy dashboard UI. 
kubectl apply -f https://raw.githubusercontent.com/Kubernetes/dashboard/v2.4.0/aio/deploy/recommended.yaml

In my case, the command was showcasing some error with my Linux, so I reinstalled Ubuntu 20.04 LTS. If you don’t have any Linux distribution, install from the Microsoft store in case of any error.

## Accessing Kubernetes Dashboard

You need to create a sample user to access the Kubernetes dashboard. Follow this article to create a sample user and generate token.
To enable access to the dashboard, use the below command in the terminal
kubectl proxy
The dashboard will be available at http://localhost:8001/api/v1/namespaces/Kubernetes-dashboard/services/https:Kubernetes-dashboard:/proxy/
If everything is done right you will be able to get access to the dashboard.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w6u70tjaetpesx7g21l2.png)
These are the steps I followed to install Kubernetes on windows 10 home. I hope this article was helpful. If you still face any problems, comment down below, I will try to get back to you with the solution.