Install Docker And Kubernetes On Windows 10

/ Comments off

K8s and docker containertechnology are very popular technologies at present. What’s more, this technology stack is not very friendly to DONet programmers of CN. To put it bluntly, 1. Many images need a ladder to access; 2. Window programmers are naturally unfamiliar with command line operations. 3. A lot of information is Linux, etc

Now let’s install and deploy together.

1、 Installation environment.

1. The essence of docker container is virtual technology. Simple understanding is VMware virtual machine. It is recommended that windows 10 or above and support virtualization technology environment. If virtualization is not turned on, enter Boise to turn it on. If virtualization is not supported, it needs to be installedDocker toolbox. My machine environment is as follows, the following installation steps: Windows 10 and enable virtualization

  • Authors: Nuno do Carmo Docker Captain and WSL Corsair; Ihor Dvoretskyi, Developer Advocate, Cloud Native Computing Foundation Introduction New to Windows 10 and WSL2, or new to Docker and Kubernetes? Welcome to this blog post where we will install from scratch Kubernetes in Docker KinD and Minikube. Why Kubernetes on Windows? For the last few years, Kubernetes became a de-facto standard.
  • Our Linux Docker installation is ready to play with. Let's do an installation on the Windows box now. Installing on Windows. The native Docker package can be run on 64-bit Windows 10 Professional or Enterprise. It uses the Windows 10 virtualization engine to virtualize the Linux kernel.
  • Step by Step – How to Install Docker (2020) in Windows 10 In this blog, I will show you how to install Docker version 19 in Windows 10. We will be using community edition (CE) as this is a free version.

Download the docker installation package

Docker-For-Windows has recently added native Kubernetes integration. To use it you need a very recent OS version (Windows 10 Pro). If you have an older version (e.g. Windows 7) or a non-Pro edition (e.g. Home) then Minikube is the only option.

After installation, it looks like this:

Install Docker And Kubernetes On Windows 10

* There are pits in it. After installation, you can’t check the enable k8s option directly. Again, don’t click

Configure the image,

2、 Pull k8s image

Install Docker And Kubernetes On Windows 10 64-bit

After pulling the image, perform the following operations. For details, please refer to the articles of Boyou. Open and install kubernetes based on docker for windows. Follow this step, and I won’t go into details

3、 Install kubernetes dashboard

What is docker and kubernetes

To view the current docker running status:

PS execution: kubectl get pods — namespace Kube system

4、 Turn on the agent,

Ps: kubectl proxy

Note that the browser can only be opened when the dashboard container is running normally. When there is an error, you can see the specific information of container operation. Use the following command:

kubectl describe pod kubernetes-dashboard-669f9bbd46-rhmst –namespace kube-system

Executing kubernetes- dashboard.yaml File, the image may fail to pull, resulting in the doashboard container can not run normally.

Image pull failure handling:

Install Docker And Kubernetes On Windows 10 Bootable

Docker

The following kubectl commands are commonly used:

5、 Open doashbard,

Open browser:

http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/#!/overview?namespace=default

KubernetesInstall Docker And Kubernetes On Windows 10

At this time, there may be a problem, unable to log in

Install Docker And Kubernetes On Windows 10 64-bit

Get login token command:

What Is Docker And Kubernetes

Finally, I’m finished,