Preparatory work
1. Three Ubuntu hosts:
Operating system: UBUNTU-16.04.1-SERVER-AMD64
Docker
1. Install using the command sudo apt-get install Docker
sudo apt-get install Docker
#运行docker服务端
Dockerd
2. Add the current user to the Docker group, or you'll need to add sudo super privilege to each run of Docker, which is troublesome
sudo groupadd Docker
sudo gpasswd-a Nwlab Docker
View User group information Vi/etc/group or groups Nwlab
Docker version to see if it takes effect
#未生效, restart
sudo reboot
3.
Kubernetes
version:release-1.3
master:109.105.46.94
minion1:109.105.46.95
minion2:109.105.46.96
ETCD: Highly Available key-value storage system, primarily for shared configuration and service discovery. Runs on the master host.
The FLANNEL:COREOS team designed a network planning service for Kubernetes, which simply means that the Docker containers created by different node hosts in the cluster have a unique virtual IP address for the complete set. In the default Docker
In the configuration, the Docker service on each node is responsible for the IP assignment of the node container that is located separately. One problem with this is that containers on different nodes may get the same internal and external IP addresses. Flannel is designed to re-plan the use of IP addresses for all nodes in the cluster, allowing containers on different nodes to have "one intranet" and "non-duplicated" IP addresses, and allow containers belonging to different nodes to communicate directly through the intranet IP.
Set up kubernetes clusters on Ubuntu physical machines-ready