---
title: "How to Install Kubernetes on Windows"
description: "Discover how to use and install Kubernetes on Windows in this in-depth tutorial and how-to guide by ATA Learning!"
canonical: "https://adamtheautomator.com/kubernetes-on-windows/"
---

# How to Install Kubernetes on Windows

> Discover how to use and install Kubernetes on Windows in this in-depth tutorial and how-to guide by ATA Learning!

Source: https://adamtheautomator.com/kubernetes-on-windows/

---

ATA Learning

Tap to hide

[

ATA Learning

](/)

*   [Home](/)
*   [Tutorials](/tutorials/)
*   [Instructors](/author/)
*   [Advertising](/advertising/)
*   [Recommended Resources](/resources/)
*   [About Adam](/about-adam/)

Search for:  

*   [](https://twitter.com/adbertram)
*   [](https://github.com/Adam-the-Automator)
*   [](https://www.linkedin.com/company/adam-the-automator-llc)
*   [](/feed/)

![How to Install Kubernetes on Windows](https://adamtheautomator.com/wp-content/uploads/2022/10/How-to-Install-Kubernetes-on-Windows.jpg)

# How to Install Kubernetes on Windows

[![](https://secure.gravatar.com/avatar/2788bb1a3f735603f81eca51d68daec56a9d97e805a10268fb2c20afcc76b81b?s=192&d=mm&r=g)Nicholas Xuan Nguyen](https://adamtheautomator.com/author/nicholas-xuan-nguyen/)11 October 20225 min. read

Categories: [IT Ops](/category/it-ops/)

Tags:[Kubernetes](/tag/kubernetes/)[Windows](/tag/windows/)

Table of Contents

*   [Prerequisites](#prerequisites)
*   [Enabling Hyper-V to Support Virtualization](#enabling-hyper-v-to-support-virtualization)
*   [Installing Docker Desktop](#installing-docker-desktop)
*   [Installing Kubernetes via the Docker Desktop](#installing-kubernetes-via-the-docker-desktop)
*   [Installing kubectl on Windows](#installing-kubectl-on-windows)
*   [Conclusion](#conclusion)

If you need a portable, extensible, and open-source platform you can use to manage containerized workloads and services, Kubernetes on Windows is a must-have. Kubernetes enables you to deploy and manage containerized applications at scale.

In this tutorial, you’ll learn to install Kubernetes on Windows using Hyper-V and Docker. And at the end of this tutorial, you will have a working Kubernetes cluster and a web-based UI you can use to deploy and manage your pod and applications.

Read on and start scaling your applications!

## Prerequisites

This tutorial will be a hands-on demonstration. If you’d like to follow along, be sure you have a Windows 10 computer (or later) with the following:

*   At least 4GB of RAM. The general rule for RAM is 300MB for each node in the cluster.
*   A processor that supports hardware virtualization (most Intel and AMD processors released since 2005).

## Enabling Hyper-V to Support Virtualization

Before running Kubernetes, you first have to enable Hyper-V on your machine. Hyper-V is a [type 1 hypervisor](https://phoenixnap.com/kb/what-is-hypervisor-type-1-2) that provides the virtualization technology upon which Kubernetes will run.

1\. Open PowerShell as an [administrator](https://adamtheautomator.com/powershell-run-as-administrator/), and run the command below to enable Hyper-V (Microsoft-Hyper-V).

Related:[Discover How to Run PowerShell as Administrator](https://adamtheautomator.com/powershell-run-as-administrator/)

2\. Once enabled, reboot your computer to apply the changes.

3\. Finally, run the following command to verify that Hyper-V is enabled and running.

```powershell
Get-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V
```

The output below shows you’ve successfully enabled Hyper-V.

![Verifying that Hyper-V is enabled](https://adamtheautomator.com/wp-content/uploads/2022/10/image.png)

Verifying that Hyper-V is enabled

## Installing Docker Desktop

After enabling Hyper-V, you next need to install Docker Desktop so that you can work quickly with Docker containers on your computer. Docker Desktop includes everything you need to run containers, including the Docker Engine, a container runtime, and a management UI.

Related:[Docker on Windows? Get Started Learning Now Or…!](https://adamtheautomator.com/docker-windows/)

Kubernetes is designed to run on top of a container runtime like Docker. While you could install Kubernetes directly on your computer, using Docker Desktop is much easier as it includes all of the necessary tools and utilities.

1\. Open your favorite web browser, navigate to the [Docker Desktop download page](https://docs.docker.com/desktop/install/windows-install/), and download and run the installer.

![Downloading the Docker Desktop installer](https://adamtheautomator.com/wp-content/uploads/2022/10/image-1.png)

Downloading the Docker Desktop installer

![Installing Docker Desktop](https://adamtheautomator.com/wp-content/uploads/2022/10/image-2.png)

Installing Docker Desktop

2\. Once Docker Desktop is installed, click Close and Restart to restart your computer.

A restart is required to complete the installation since the installer needs to modify your Windows configuration.

![Restarting your computer](https://adamtheautomator.com/wp-content/uploads/2022/10/image-3.png)

Restarting your computer

3\. After restart, open Docker Desktop, tick the I accept the terms checkbox, and click Accept to accept the license agreement.

![Accepting the license terms](https://adamtheautomator.com/wp-content/uploads/2022/10/image-4.png)

Accepting the license terms

If all goes well, Docker Desktop opens, as shown below.

![Verifying Docker Desktop is installed and running](https://adamtheautomator.com/wp-content/uploads/2022/10/image-5.png)

Verifying Docker Desktop is installed and running

4\. Finally, run the below [docker run](https://docs.docker.com/engine/reference/commandline/run/) command to verify that Docker is working as expected.

This command pulls the hello-world container from Docker Hub if it is not already present on your computer and runs it.

```powershell
 docker run hello-world
```

> _The docker command is accessible from any CLI(Command Line Interface) like PowerShell or Command Prompt, as long as the Docker service runs. If not, run the command below to start the Docker service. Start-Service \*docker\*_

This output below signifies your installation is working correctly.

![](https://adamtheautomator.com/wp-content/uploads/2022/10/image-6.png)

Verifying that Docker is working as expected

## Installing Kubernetes via the Docker Desktop

Now that you have enabled Hyper-V and installed Docker Desktop, you’re ready to install Kubernetes on Windows. In this tutorial, you will use the Docker Desktop GUI to enable and install Kubernetes.

1\. Right click on the Docker icon in the system tray and select Settings from the context menu to access the Docker Desktop settings.

![Opening the Docker Desktop settings](https://adamtheautomator.com/wp-content/uploads/2022/10/image-7.png)

Opening the Docker Desktop settings

2\. Next, select Kubernetes (left panel), tick the Enable Kubernetes checkbox, click Apply & Restart to apply the changes, and restart Docker Desktop.

![Enabling Kubernetes](https://adamtheautomator.com/wp-content/uploads/2022/10/image-8.png)

Enabling Kubernetes

3\. Click Install when prompted, as shown below. Doing so installs Kubernetes on your computer, which might take a few minutes to complete.

![Installing Kubernetes on your computer](https://adamtheautomator.com/wp-content/uploads/2022/10/image-9.png)

Installing Kubernetes on your computer

You will see the Kubernetes cluster starting in the middle of the screen. This cluster contains a single node, which is your computer.

![Verifying the new Kubernetes cluster starting up](https://adamtheautomator.com/wp-content/uploads/2022/10/image-10.png)

Verifying the new Kubernetes cluster starting up

At this point, your Kubernetes cluster is running (bottom-left) like in the screenshot below, and you can start using that cluster.

![Verifying the new Kubernetes cluster is running](https://adamtheautomator.com/wp-content/uploads/2022/10/image-11.png)

Verifying the new Kubernetes cluster is running

## **Installing kubectl on Windows**

You’ve successfully started your Kubernetes cluster, but how do you manage it? [kubectl](https://kubernetes.io/docs/reference/kubectl/) is a command line tool that lets you interact with your Kubernetes cluster, which you need to install.

Related:[Effortless Management with the K9S Kubernetes CLI](https://adamtheautomator.com/k9s-kubernetes/)

kubectl is available as a standalone binary that you can download from the Kubernetes releases [page](https://kubernetes.io/releases/).

1\. [](https://dl.k8s.io/release/v1.25.0/bin/windows/amd64/kubectl.exe)[Download the latest kubectl](https://dl.k8s.io/release/v1.25.0/bin/windows/amd64/kubectl.exe) binary for your computer. The [latest version](https://kubernetes.io/releases/) at the time of writing this tutorial is kubectl v1.25.

2\. Next, download the [checksum file](https://dl.k8s.io/v1.25.0/bin/windows/amd64/kubectl.exe.sha256) for the same release. You will use this checksum file to verify the authenticity of the downloaded binary.

3\. Run the below command to compare the two SHA-256 hashes of the kubectl release and checksum file you downloaded.

> _You must put the kubectl binary and the checksum file in the same directory for this validation to work._

The commands below perform the following:

*   Change the working directory to the kubectl binary and checksum files’ location. Ensure you change the C:\\Users\\ata\\Download\\Programs path to where you saved the files.
    
*   Compute the SHA-256 hash (CertUtil) of the kubectl binary.
    
*   Compare the result with the checksum in the checksum file.
    

```powershell
cd C:\Users\ata\Download\Programs
$($(CertUtil -hashfile .\kubectl.exe SHA256)[1] -replace " ", "") -eq $(type .\kubectl.exe.sha256)
```

If both results match, you will see a True output, as shown below, which indicates that the binary is not corrupt, and you can proceed with installing the binary. Otherwise, you’ll get a False output and have to re-download the kubectl binary.

![Validating the integrity of the downloaded binary](https://adamtheautomator.com/wp-content/uploads/2022/10/image-12.png)

Validating the integrity of the downloaded binary

4\. Now, run the below command to add the path of the kubectl binary to your PATH environment variable. Be sure to replace <full/path/of/kubectl/binary> with your computer’s actual path of the kubectl binary.

This command makes the kubectl binary accessible on the command-line interface

```powershell
setx /m PATH "$Env:PATH;<full/path/of/kubectl/binary>"
```

![Adding kubectl to your PATH environment variable](https://adamtheautomator.com/wp-content/uploads/2022/10/image-13.png)

Adding kubectl to your PATH environment variable

5\. Close the current PowerShell session, and open a new one for the changes to take effect.

6\. Next, run the below command to verify that kubectl is installed and working.

This command prints out the man page for kubectl, which indicates that it is working correctly.

```powershell
kubectl --help
```

![Viewing the man page](https://adamtheautomator.com/wp-content/uploads/2022/10/image-14.png)

Viewing the man page

7\. Lastly, run the following command to double-check that kubectl is configured to work with your Kubernetes cluster. This command prints out the URL and the status (cluster-info) of your Kubernetes master.

```powershell
kubectl cluster-info
```

![Double checking that kubectl is configured to work with your Kubernetes cluster](https://adamtheautomator.com/wp-content/uploads/2022/10/image-15.png)

Double checking that kubectl is configured to work with your Kubernetes cluster

> _If you get an Unable to connect to the server error, as shown below, make sure your Kubernetes cluster is running and that you can connect to it from your computer._

![Getting an “Unable to connect to the server” error](https://adamtheautomator.com/wp-content/uploads/2022/10/image-16.png)

Getting an “Unable to connect to the server” error

## Conclusion

Throughout this tutorial, you learned how to install Kubernetes on Windows and verify the installation works by starting up a Kubernetes cluster. Kubernetes has made it possible to automate many of the manual processes to ease the tasks of deploying, managing, and scaling containerized applications.

Now at this point, you have a working Kubernetes cluster and are ready to deploy your first application. Why not explore more about Kubernetes? Start running your [applications on Windows](https://www.youtube.com/watch?v=c8ppFCPLgMU) without any headaches!

Share this article

[Share on X](https://twitter.com/intent/tweet?url=https%3A%2F%2Fadamtheautomator.com%2Fkubernetes-on-windows%2F&text=How%20to%20Install%20Kubernetes%20on%20Windows)[Share on Facebook](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fadamtheautomator.com%2Fkubernetes-on-windows%2F)[Share on LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fadamtheautomator.com%2Fkubernetes-on-windows%2F)

## Related Posts

![](https://adamtheautomator.com/wp-content/uploads/2022/09/Getting-Started-with-Docker-Rancher-Desktop.jpg)

### [Getting Started with Docker Rancher Desktop](/docker-rancher/)

Learn how to get started with the Docker Desktop alternative, Docker Rancher Desktop in this ATA Learning tutorial!

![](https://adamtheautomator.com/wp-content/uploads/2024/04/idfix.jpg)

### [Solve Azure AD Connect Errors via the Microsoft IdFix Tool](/idfix/)

Fix Azure AD Connect errors fast with the Microsoft IdFix tool—your go-to solution for seamless synchronization and efficient directory management!

![](https://adamtheautomator.com/wp-content/uploads/2024/04/sandboxie.jpg)

### [How to Install Sandboxie on Windows](/sandboxie/)

Secure your Windows system with Sandboxie. Learn how to install this tool hassle-free and safeguard your digital activities!

## Categories

*   [IT Ops](/category/it-ops/)
*   [Cloud](/category/cloud/)
*   [DevOps](/category/devops/)
*   [Home Ops](/category/home-ops/)
*   [Information Security](/category/infosec/)
*   [Software Development](/category/software-development/)

## Site

*   [Home](/)
*   [Tutorials](/tutorials/)
*   [Instructors](/author/)
*   [Advertising](/advertising/)
*   [Recommended Resources](/resources/)
*   [About Adam](/about-adam/)

Copyright 2026© ATA Learning | [Privacy Policy](/privacy/)
