Set up kubernetes clusters on Ubuntu physical machines-ready

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.