ADD Open vswitch-based multitenant backend for use with OPENSHIFT/KUBERNETES:HTTPS://GITHUB.COM/COREOS/FLANNEL/PULL/38 4Flannel communication schematic diagram: Https://raw.githubusercontent.com/coreos/flannel/master/packet-01.pnghttp://cdn2.infoqstatic.com/statics_s1_20161214-0550/resource/articles/ Docker-network-and-pipework-open-source-explanation-practice/zh/resources/1419560200174.pngPipework, Weave,
NetworkingKubernetes supports for Third-party netwroking the cluster via the MLM plugin. For more infromation, please see Cluster Networking.According to this Chinese blog, Principles and Solutions of Kubernetes Networking from Yourongyun the three top of the MLM Pro Viders for kubernetes cluster based on VMs is Project Calico, flannel, Weave Net.And also, here
entry for the entire system and provides interfaces using rest api services.
Kube-controller-manager: used to execute background tasks throughout the system, including node status, number of Pods, and association between Pods and services.
Kube-scheduler (scheduling a Pod to a Node): responsible for Node resource management. It accepts the Pods task created by kube-apiserver and assigns it to a Node.
Etcd: responsible for service discovery and configuration sharing between nodes.
Kube-proxy
address the operational automation of the production environment, followed by the container build problem (i.e., CI/CD). Our network selection is flannel, million trillion network, flannel although there is performance loss, but far to meet our actual needs. Storage we use Ceph's RBD way, for more than a year, RBD's program is very stable. The way Ceph FS is we have tried, but it has not been formally used
First, prerequisites1, first you will have ready-made kubernetes cluster, if you have nothing now, please refer to:http://zlyang.blog.51cto.com/1196234/19510102, the proposed use ETCD cluster, the construction process please refer to:http://zlyang.blog.51cto.com/1196234/1951164Ii. Deployment of Kubernetes-dashboard[All machines: Master, Node1, Node2]1, install flannel
The article introduces two simple flannel and sewing embroidery effect, the method is simple, flannel with filter to real, sewing embroidery effect is to draw a V shape or enter a V-letter also line, and then defined as a brush,
Then set the brush to draw the effect of sewing embroidery. Interested students come and learn quickly!
Tutorial:
; Note:this must be before the Nodeport rules "-j kube-portals-host-A output-m addrtype--dst-type local-m comment--comment "handle service nodeports; Note:this must is the last rule in the chain "-j kube-nodeport-host-A OUTPUT! -D 127.0.0.0/8-M addrtype--dst-type local-j DOCKER-A postrouting-s 192.168.90.0/24! -O Docker0-j Masquerade-A postrouting-s 192.168.0.0/16-j flannel-A flannel-d 192.168.0.0/16-j ACCE
list of nodes in the ETCD clusterKube_etcd_servers= "--etcd-servers=http://127.0.0.1:2379"# Address range to use for servicesKube_service_addresses= "--SERVICE-CLUSTER-IP-RANGE=10.254.0.0/16"# Default Admission Control policies#KUBE_ADMISSION_CONTROL = "--admission-control=namespacelifecycle,namespaceexists,limitranger, Securitycontextdeny,serviceaccount,resourcequota "Kube_admission_control= "--admission-control=namespacelifecycle,namespaceexists,limitranger,resourcequota"# ADD Your own!Kube_a
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/v
CIDR block on 167 is 172.17.4.13/24.168 is 172.17.14.0/24, and the IP addresses of the docker containers created later are in the two network segments respectively.Then execute
Flanneld>/usr/local/kubernete_test/logs/flanneld. log 2> 1 Run the following command on each machine:
Mk-docker-opts.sh-ISource/run/flannel/subnet. envRm/var/run/docker. pidIfconfig docker0 $ {FLANNEL_SUBNET}Restart docker
Service docker restartIn this way, the network of con
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, se
Yum-y Install ETCD Docker flannel kubenetesGeneral will encounter no k8s source problem, first Yum update-y see if it is effective, if still useless to create a Yum source, and then install KubenetesDo the following:Create a Yum sourcevi virt7-docker-common-release.repoAdd the following content:[virt7-docker-common-release]name=virt7-docker-common-releasebaseurl=http://cbs.centos.org/repos/virt7-docker-common-release/x86_64/os/gpgcheck=0Installation
hardware failure, DHCP cannot be broadcast.
Q: are non-coreos systems considered for support?
A: I'm going to make this perfect, and then I'll say it well. Welcome PR Ah, at present we have serious shortage of groups, no energy to do too much, only in their own scope of work, by the way the code open source.
Q: What Vxlan is used in the network mode of the whole cluster? Flannel or pipework for network service?
A:flannel
Q: What is the use of
Kubernetes introduced Kubeadm from 1.3 to try to simplify its complex installation. But Kubeadm is still not stable, and I personally think Kubeadm instead of trouble, rather than directly with the script or other automated tools to install the neat. There are also alternatives to HA for KUBEADM configuration master, such as using highly available cluster software such as keepalived or Corosync. So in this document, I will still use the traditional wa
:10.180.64.9 As for the network can use flannel, or openvswitch, this information online a lot, can Google or Baidu. 2. Deploy related ComponentsKubernetes installation is divided into 3 parts: ETCD cluster, master node, and minions.In order to facilitate the use of 4 cloud host as an example to build a kubernetes cluster, the cloud host machine allocation is as follows:
Ip
Role
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
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.