.
Rancher Server (rancher/server): Rancher Management Server, which will run the Web front end and API.
Rancher Agent (rancher/agent): Each node obtains a relatively independent agent to administer the node.
Rancher Kubernetes Agent 1 (rancher/kubernetes-agent): The agent responsible for handling communication between Rancher and Kubernetes.
Rancher Agent
This is a creation in
Article, where the information may have evolved or changed.
K8s Offline installation package Three-step installation, simple to unbelievable
Kubeadm Source Code Analysis
To say the truth, Kubeadm code is sincere, the quality is not very high.
A few key points to first talk about some of the core things Kubeadm did:
Kubeadm Generate certificate in/etc/kubernetes/pki directory
Kubeadm generate a static pod Yaml configurati
Original link Address: http://luyiisme.github.io/2017/04/22/spring-cloud-service-discovery-products/
Here on the usual use of services found in the product to carry out the comparison of characteristics, first of all to see the conclusion:
Feature
Consul
Zookeeper
Etcd
Euerka
Service Health Check
Service status, memory, hard drive, etc.
(weak) long connection, keepalive
Connect Heartbeat
Ava
There are several ways to install the Kubernetes cluster, the KUBEADM approach is described earlier, and the manual installation method is described in this article.The installation environment has 3 VMS on Azure:HKUBE01:10.0. 1.4 HKUBE02: 10.0. 1.5 Hbube03: 10.0. 1.6Where hkube01 is the master node, it will install Docker, ETCD, Kubernetes Master, flannel requir
machines in the cluster into a master node and a group of working nodes (node). Where the cluster management-related set of processes Etcd, API Server, Controller Manager, Scheduler are running on the master node, and the last three components form the Kubernetes Master Center, which implements the resource management of the entire cluster, Pod scheduling, flexible scaling, security control, system monitor
This is a creation in
Article, where the information may have evolved or changed.
Source: Personal blog Address: http://www.damonyi.cc/?p=194
The project uses the ETCD database to store the container's information and the application's domain name information, and ETCD the Golang code of the operation.
1. Write container information to the specified directory
C, err: = Common. Getetcdclient () if err! = Ni
[[email protected] ~]# Vim/etc/salt/master =============> at the bottom of the configuration file, add the following contentEtcd_pillar_config:etcd.host:10.0.0.7etcd.port:4001Ext_pillar:-Etcd:etcd_pillar_config root=/salt/haproxy/[Email protected] ~]#/etc/init.d/salt-master restartStopping salt-master daemon: [OK]Starting Salt-master daemon: [OK]Set a key here:[Email protected] ~]# curl-s http://10.0.0.7:2379/v2/keys/salt/haproxy/backend_www_oldboyedu_com/web-node1-XPUT-d Value= "10.0.0.7:8080"
The reference urls:https://github.com/kubernetes/kubernetes/blob/master/docs/getting-started-guides/ ubuntu-calico.mdhttps://github.com/projectcalico/calico-docker/blob/master/docs/kubernetes/ Kubernetesintegration.md I have 3 hosts:10.11.151.97, 10.11.151.100, 10.11.150.101. Unfortunately, there is no Internet access in all 3 hosts. Following the guide, I-Build
Today, in testing the ETCD-based distributed lock process, the function of automatically extending the TTL after the test acquires the lock, exceeding the TTL length before releasing it, always returns a 404 error message when the TTL of the specified key is extended, and the target key does not exist when the TTL is updated on the target key.The final troubleshooting is that the system time between the 3 nodes of the
What is 1.1 kubernetes?First, it is a new, container-based, distributed architecture leading solution. is an open source version of Google's Borg (large-scale cluster management system).Second, if the system design follows the Kubernetes design idea, then the traditional system architecture and business does not have much to do with the underlying code or function modules (such as load balancing, service se
.
Controller: Responsible for managing various controllers. such as--Replicationcontroller,
Endpointcontroller and so on.
Node Component:
Kubelet: Responsible for the control of Docker containers, such as Start/stop, monitor operation status.
Proxy: Responsible for providing the agent for the pod. It periodically obtains all the service from ETCD and creates an agent based on the service information.
Co
This is a creation in
Article, where the information may have evolved or changed. Package Main
Import (
"Log"
"Github.com/coreos/go-etcd/etcd"
)
Func Main () {
Client: = Etcd. Newclient (
[]string{
"Http://127.0.0.1:2379",
},
)
for {
RESP, err: = client. Get ("config", false, False)
If err! = Nil {
Log. Fatal (ERR)
}
Log. Printf ("Current creds
Export kubeconfig=/etc/kubernetes/admin.conf
echo "Export kubeconfig=/etc/kubernetes/admin.conf" >> ~/. Bash_profile
2.2 Installation Network addon
To Docker can communicate with each other need to do some configuration, here with flannel to achieve
Kubectl apply-f https://raw.githubusercontent.com/coreos/flannel/v0.9.1/Documentation/kube-flannel.yml
After the installation is complete, check to see if
://github.com/containernetworking/cni/releases/download/v0.5.2/cni-amd64-v0.5.2.tgztar Xvzf Cni-amd64-v0.5.2.tgzSource Connection: https://github.com/YaoZengzeng/scripts/blob/master/k8s-download.sh5. Then run the various components of kubernetes:#!/bin/bash# on the master node, start Etcddocker run --net=host --detach GCR.IO/GOOGLE_CONTAINERS/ETCD : 2.0.12 /usr/local/bin/
This article CSDN blog address: http://blog.csdn.net/huwh_/article/details/71308171First, the kubernetes of the general structure of the two, kubernetes each component introduction (a) kube-master[control node]
Workflow Flowchart for Master
Kubecfg sends a specific request, such as creating a pod, to the Kubernetes Client.
This is a creation in
Article, where the information may have evolved or changed.
Let's not talk about installation, just use it.
Etcd,consul are distributed kv, which is commonly used for service discovery;
1 Registration Service
Here to use ETCD.CLIENTV3 to do things, Godoc here, here is the pseudo-code
// key 随你制定, 只要能标识是那个服务器(比如 root/game/node_1)即可. value 可以包含addr, 状态, 优先度等信息client.OpPut(key,value)
Here are the tips: it is best to achiev
Download the latest version:Https://github.com/kubernetes/kubernetes/releasesDownload kubernetes.tar.gzAfter decompression to the cluster directoryExecutive get-kube-binaries.shExecute directory to control, this script will automatically download the client and server-related files, will be automatically placed in the Kubernetes directoryThe corresponding file ca
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.