The author uses Release v1.2.0-alpha.6, which is already 496 MB in size, and the previous version of Release v1.1.4 is only 182 MB. It can be seen that there are many fast updates, I have also used version 1.0.1 before, and some interfaces and parameters have changed. For example, the previous kubectl expose parameter is public-ip, but now it is changed to externalIPs, therefore, in practice, you must follow your own version.Environment Description:
2 machines, 167 and 168. The system is CentOS
/etcd: 2.0.5/usr/local/bin/etcd -- addr = 192.168.2.143: 4001 -- bind-addr = 0.0.0.0: 4001 -- data-dir =/var/etcd/data
Insert the flannel configuration information in etcd and specify that the flannel uses the 10.0.0.0/8 interval.
docker exec -it etcd etcdctl set /solinx.co
Copyright notice: This article by Turboxu original article, reprint please indicate source:Article original link: https://www.qcloud.com/community/article/152Source: Tengyun https://www.qcloud.com/communityKubernetes, an important member of the container orchestration ecosystem, is an open source version of Google's large-scale container management system (Borg) that draws on Google's experience and lessons learned in the production environment over the past decade. Kubernetes provides applicati
containers in the pod:The communication between pod and podCommunication on the same host:In the host through the Docker0 Bridge network card, can realize the direct communication between the pod, here and the pure Docker environment of multiple container interoperability principle is similar.Another scenario is to communicate between different pods on different host hosts, and the schematic diagram is as follows:Network PluginThe company is a container network specification proposed by
/kubernetes.git$cd kubernetes$ make release-skip-tests$mv _output/release-stage/full/kubernetes/server/ Kubernetes-server-linux-amd64. tar. GZ cluster/ubuntu/NoteIn addition to LINUX/AMD64, cross-compiling is also done by default for other platforms. In order to reduce compilation time, you can modify hack/lib/golang.sh, kube_server_platforms, Kube_client_platforms and kube_test_platforms in addition to linux/ Comment out the platform other than AMD64.2. Download the
, launched in the summer of 2014, based on Docker, which is designed to allow users to manage cloud container clusters through kubernetes clusters without requiring users to perform complex setup tasks. The system will automatically select the appropriate working node to perform the specific container cluster scheduling processing work. The core concept is the container Pod (container compartment).
GitHub Managed Address: https://github.com/GoogleCloudPlatform/kubernetes
3.
service designed by the CoreOS team for kubernetes, which simply means that the Docker container created by the different node hosts in the cluster has a unique virtual IP address for the complete cluster. It also creates an overlay network between these IP addresses, which, through this overlay network, passes the packets intact to the target container (Overlay).Here is a schematic diagram of its network:As you can see, flannel first creates a bridg
Kubernetes, as an important member of the Docker ecosystem, is an open source version of Google's many years of large-scale container management technology, as Urs Hölzle said, whether it is a public cloud or a private cloud or even a hybrid cloud, kubernetes will be used as an application for any The container management framework for any environment is ubiquitous. Because of this, it is now favored by major and start-up companies, such as Microsoft, VMWare, Red Hat,
1. Preface
Together we'll ensure that Kubernetes are a strong and open container management framework for all application and in any Environment, whether in a private, public or hybrid cloud.
Urs Hölzle, GoogleAs an important member of the Docker ecosystem, Kubernetes is an open source version of Google's large-scale container management technology for many years, and is the best practice for production line experience [G1]. As Urs Hölzle says, whether it's a public cloud or a priv
Direct start:5.1, Flannel IntroductionFlannel is an overlay networking (overlay network) tool designed by the CoreOS team for Kubernetes to help each kuberentes host with CoreOS have a complete subnet. Kubernetes assigns a separate IP address to each pod, which makes it easier for Containers in the same pod to connect to each other, and flannel to set a subnet for the host by creating an overlay grid networ
basic process.Build the EnvironmentIn the first step, we need to kuberntes the binary executables of each component. The following two ways are available:
Download the source code to compile yourself:
git clone https://github.com/GoogleCloudPlatform/kubernetes.git
CD Kubernetes/build
./release.sh
Directly download the tar file that has been compiled and packaged:
wget https://storage.googleapis.com/kubernetes/binaries.tar.gz
Com
In the previous section we deployed ETCD, and this section installs and configures flannel. Build Flannel
Flannel do not have a ready-made executable file available, you must build it yourself, the most reliable way is to build in the Docker container. But for build Docker mirror hosting in Gcr.io, domestic may not be directly accessible, for the convenience of everyone, I put it mirror to the Docker hub, the construction steps are as follows:
Downloa
file, which is obtained by the following way:wget https://github.com/coreos/etcd/releases/download/v0.4.6/etcd-v0.4.6-linux-amd64.tar.gzTar xvf etcd-v0.4.6-linux-amd64.tar.gzIn the third step, you can start each component:EtcdCD ETCD-V0.4.6-LINUX-AMD64./etcdApiserver./apise
Kubernetes (hereinafter referred to as "k8s") is now recognized as the most advanced container cluster management tool, after the release of the 1.0 release, the development of k8s more rapidly, and has been the full support of the container ecosystem manufacturers, including coreos, rancher, etc., Many vendors that provide public cloud services also provide container services based on k8s for two development to support the infrastructure layer, such
selected does not respond, the iptables agent cannot automatically retry the other pod, so it depends on having a working readiness probe.
6, Kube-dns IntroductionKube-dns is used to assign subdomains to the Kubernetes service, which can be accessed by name in the cluster, and typically kube-dns give the service a name of " Service name. Namespace.svc.cluster.local "A record used to parse the service's Clusterip.
Kube-dns components:
The Kubernetes v1.4 version consists of four co
Kube-dns is made up of four containers, and the roles they play can be understood by the following Diagram.whichSkydns is an open-source framework for service discovery, built on ETCD. The function is to provide a DNS query interface for pods in the k8s cluster. Project hosted in Https://github.com/skynetservices/skydnsETCD is an open-source distributed Key-value store that functions like zookeeper. The function in Kube-dns is to store all kinds of d
the summer of 2014, based on Docker, which is designed to allow users to manage cloud container clusters through kubernetes clusters without requiring users to perform complex setup tasks. The system will automatically select the appropriate working node to perform the specific container cluster scheduling processing work. The core concept is the container Pod (container compartment).
3. ETCD Fleet
ETCD
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.