Open and Docker For Windows-based installation Kubernetes

0, recently discovered, Docker For Windows Stable Enable Kubernetes on this issue there is a Bug, it is recommended to switch to Edge version, and the use of AliyunContainerService below to solve network problems in China.

1, accelerated mirroring configuration services for Docker For Windows.

{
  "registry-mirrors": [
    "https://registry.docker-cn.com"
  ],
  "insecure-registries": [],
  "debug": true,
  "experimental": false
}

2, in order to complete some faster installation, we first batch through a cloud Ali, ahead of the needs of Images Kubernetes pulled down.

git clone https://github.com/AliyunContainerService/k8s-for-docker-desktop.git
cd k8s-for-docker-desktop

.\load_images.ps1

docker images

3. If you have already installed Docker For Windows, switch to Settings Kubernetes, check the open items to install.

4, key concepts

Pod
Kubernetes smallest unit, which can put a Pod many applications, to support multiple containers through the process in a communication Pod

Service service
outside the entrance Pod, you need to access outside the Pod

Deployment deployment
represents a user update operations on Kubernetes through the deployment template Pod with Service Binding

Rough understanding, can be deployed with Deployment Pod, and then exposed through access to the Pod Service.

Three types of Service

ClusterIP
an internal cluster service can not access the default external circumstances, you need to be forwarded through a proxy to access the command kubectl.

NodePort
open on all nodes in a particular port, the port forwards the traffic to the corresponding service, is exposed Pod method frequently used when developing, no proxy so much trouble.

LoadBalancer
Kubernetes load balancing, you need to load balancer (load balancer your cluster or cloud service providers) associated with it, it can help you to forward the traffic.

Guess you like

Origin www.cnblogs.com/craigtaylor/p/10971231.html