- August
Posted By : Alexander Goida
Hints about installation of Kubernates on Windows and deploying to cluster

Install https://chocolatey.org/

1. Install and CLI

Now you can check the installation by checking their versions.

The command may return the following error for the 2nd connection:

This means you don’t have Kubernetes yet.

2. Installing Kubernetes cluster

Install Kubernetes as it suggested by Docker in the client app.

In order to configure Kubernetes you need to configure network switch in Hyper-V and network adapter (sharing option). Read here.


The alternative way of installing a Kubernetes cluster is the using of of Minikube.

It also requires configuration of Hyper-V switch. On Windows system it’s less preferable because its own image registry and it’s very complicated to deploy an image created with Docker on Minikube cluster.

Deleting Minikube and cluster

If you installed with choco run the following commands:

After that delete the following folders:

  • C:\users{user}.minikube
  • C:\users{user}.kube

3. Deploying to Docker

Create a docker image from the folder with your appplication:

The . (dot) in the end refers to the current catalog. The very simple deployment is just running a command:

The option -p maps internal port which the application listens to an external one. Using the command above you’ll be able to see your deployed application using localhost:3001.

4. Using of

The easiest way of deploying several application to docker is using docker-compose. The command below performs the same deployment as we you did before with docker.

In contrast the deployment with docker-compose may be done with just only one command:

The option -d stands for detached. This means the app will run in background.

In order to stop your deployment just run the following:

Using docker-compose you can deploy several apps and define number of replicas for each of them. Ream more here.

5. Cleaning Resources

After creating a new image you may want to remove previous and not used resources. In order to remove docker images use the following commands:

For docker-compose use the following command when composing a new version (with option --remove-orphans):

See Also

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.