LINUX7-based ECTD installation and deployment
System environmentiostatLinux 3.10.0-693.17.1.el7.x86_64 (swarm1) 2018年03月28日 _x86_64_ (2 CPU)cat /etc/redhat-releaseCentOS Linux release 7.4.1708 (Core)getenforceDisabled
ETCD IntroductionETCD is an open source project launched by the CoreOS team in June 2013 with the goal of building a highly available distributed key value (key-value) database.
Given the popularity of Docker, Google launched Kubernetes management docker cluster, and many people are expected to try. Kubernetes is supported by a large number of companies, and the Kubernetes Cluster deployment Tool integrates the IaaS platform such as Gce,coreos,aws, which is also very convenient to deploy. Given that many of the online materials are based on a number of older versions, this article provides a brief description of the latest ku
Kubernetes 1.5 installation and cluster environment deploymentArticle reprinted from: http://www.cnblogs.com/tynia/p/k8s-cluster.htmlBrief introduction:Docker: An open-source application container engine that can create a lightweight, portable, self-sufficient container for your application.Kubernetes: The Docker container Cluster Management system, which is open source by Google, provides the functions of resource scheduling, deployment operation, service discovery, capacity scaling and so on f
Brief introduction:Docker: An open-source application container engine that can create a lightweight, portable, self-sufficient container for your application.Kubernetes: The Docker container Cluster Management system, which is open source by Google, provides the functions of resource scheduling, deployment operation, service discovery, capacity scaling and so on for containerized applications.ETCD: A highly available key-value storage system developed and maintained by
balancing. Next, take the go language as an example and briefly introduce the key code implementation based on ETCD3:
1) Named resolution implementation: RESOLVER.GO
Package Etcdv3
Import (
"Errors"
"FMT"
"Strings"
ETCD3 "GITHUB.COM/COREOS/ETCD/CLIENTV3"
"Google.golang.org/grpc/naming"
)
Resolver is the implementaion of Grpc.naming.Resolver
Type resolver struct {
ServiceName string//service name to resolve
This is a creation in
Article, where the information may have evolved or changed.
The GRPC-LB uses client-side in-process load balancing, supports random, polling, consistent hash three load balancing policies, and supports server-side weighting. You can use ETCD or consul as a registry.
Project Address:Https://github.com/liyue201/grpc-lb
Basic architecture, service providers get up and register their information with the registry, IP, ports, weights,
proxy, after passing through the firewall out
2: Control nodes and compute nodes communicate via REST API
3: The user's command needs to be authorized after the call Server API is sent to the system
4: Compute node main process is Kubelet and proxy
5: Control node is responsible for scheduling, state maintenance
2:kubernetes deploymentHost Environment
192.168.56.110
Etcd
Kubernetes Master
192.1
172.17.1.1PING 172.17.1.1 (172.17.1.1) 56(84) bytes of data.64 bytes from 172.17.1.1: icmp_seq=1 ttl=64 time=2.49 ms64 bytes from 172.17.1.1: icmp_seq=2 ttl=64 time=0.512 ms^C--- 172.17.1.1 ping statistics ---2 packets transmitted, 2 received, 0% packet loss, time 1002msrtt min/avg/max/mdev = 0.512/1.505/2.498/0.993 ms
Now we have established a tunnel between two minion and can work correctly. The following describes how to install Kubernetes APIServer, kubelet, proxy, and other services.4.2 in
is created, the Proxy obtains the configuration information of Services and Endpoints from etcd (or from file ), then, start a Proxy process on Minion Based on the configuration information and listen to the corresponding service port. When an external request occurs, the Proxy will distribute the request to the correct backend container for Processing Based on Load Balancer.
Therefore, the Proxy not only solves the conflict between the same Service
under the Apache License, Version2.0(The"License"); ThisFile exceptinchcompliance with the license.# obtain a copy of the License at## http://www.apache.org/licenses/LICENSE-2.0# # unless required by applicable law or agreed toinchwriting, software# distributed under the License isDistributed on an" as is"basis,# without warranties or CONDITIONS of any KIND, either express or implied.# see the License forThe specific language governing permissions and# limitations under the license.# Download t
, here we chose the 1.10.2 version:
Kubernetes-server-linux-amd64.tar.gz
Kubernetes-node-linux-amd64.tar
Master DeploymentSince the binary package is used, the corresponding files are copied directly to the execution directory after decompression:# tar xf kubernetes-server-linux-amd64.tar.gz# cd kubernetes/server/bin# cp `ls|egrep -v "*.tar|*_tag"` /usr/bin/The following is a description of the specific service configuration.1, ETCDThe ETCD
This is a creation in
Article, where the information may have evolved or changed.
http://blog.codeg.cn/post/blog/2016-02-24-distrubute-lock-over-etcd/
by Zieckey February 24, 2016 · 1205 Words~3min reading Time | Edit this page | Tags:golang ETCD DistributedThis article http://blog.codeg.cn/post/blog/2016-02-24-distrubute-lock-over-etcd/is the author Zieckey in
http://blog.codeg.cn/post/blog/2016-02-24-distrubute-lock-over-etcd/by Zieckey February 24, 2016 · 1205 Words~3min reading Time | Edit this page | Tags:golang ETCD DistributedThis article http://blog.codeg.cn/post/blog/2016-02-24-distrubute-lock-over-etcd/is the author Zieckey in research and study related content when the note, welcome the broad masses of friend
Recently in the Docker and her management tools, the selection of kuberetes, by her terminology and concepts to get dizzy ... Read an article is not bad, put it here to share.Address: http://www.linuxidc.com/Linux/2015-12/125757.htmThe citations are as follows:As an important member of the Docker ecosystem, Kubernetes is an open source version of Google's many years of large-scale container management technology and is the best practice for line-of-production experience. As Urs Hölzle says, whet
, kubernetes each component function introductionRole Component FeaturesMaster Apiserver provides pestful interfaceMaster Scheduler is responsible for scheduling, assigning pods to slave nodesMaster Controller-manager is responsible for other functions of masterMaster ETCD Storage configuration information, node information, pod information, etc.Slave Kubelet manages pod, container, and container mirroringSlave Proxy forwards the request for access to
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.