Enable Kubernetes on Docker for Windows 10

Kubernetes is an open-source system for automating deployment, scaling and management of containerized applications that was originally designed by Google and donated to the Cloud Native Computing Foundation. It aims to provide a platform for automating deployment, scaling, and operations of application containers across clusters of hosts. It supports a range of container tools, including Docker.

Kubernetes is integrated into the current build of Docker so it’s not necessary to install it manually. By default Kubernetes is not enabled by default, so let’s first enable it.

In your taskbar, you will find a icon in the form of a whale carrying tiny containers. Right click on the whale and choose Settings.

In the Settings windows, check “Enable Kubernetes” and click on Apply.

Click Install to install the Kubernetes cluster.

Kubernetes cluster installation in progress.

When the installation is complete, click Close.

Check Kubernetes version

To get more information about the build you are running, use the following command below:

Result:

To view Kubernetes configuration details like Port, name and other information use the following command:

Result:

Note: It’s recommended to use PowerShell 6.x as the command line console for Kubernetes and Docker management.

Let Kubernetes be managed by Docker

To let Kubernetes be managed by Docker, you need to run the commands below, the first one will tell if Docker is managing Kubernetes and the second one will make docker use Kubernetes as his cluster and not swarm.

The Kubernetes command line tool is located in the path below and if you are not adding this path to windows you will need to navigate to it if you want to run Kubernetes commands.

To add Kubernetes to the windows command line path run the following command:

Kubernetes configuration file

The Kubernetes configuration file is located in the user profile path below:

Open the configuration “config” file with your favorite text editor. The configuration will look like below:

Cluster and Nodes

To view the Kubernetes cluster info, Nodes and Pods details, just use the following commands:

Kubernetes Services

To view the Kubernetes services, use the following command:

Result:

Kubernetes Deployments

If you want to delete for example a deployed stack, services and specific stack deployment, use the following commands:

I really like to hear what you have to say about this article:

  • Was this article helpful for you or do you have any questions?
  • Do you have additions, suggestions or any other ideas?
  • Just let me know by leaving a comment below.

Thank you for spending some time at my site and in my blog. I hope you come to visit again soon 😉

About Lex van der Horst 201 Articles
Techwire

Be the first to comment

Leave a Reply