-amd64Gcr.io/google_containers/exechealthz-amd64
# Network plugin, all nodes will be installedWeaveworks/weave-kubeWeaveworks/weave-npc
# DNS plug-in, Management node installationGcr.io/google_containers/kubedns-amd64Gcr.io/google_containers/kube-dnsmasq-amd64Gcr.io/google_containers/dnsmasq-metrics-amd64
# Web interface, Management node installationGcr.io/google_containers/kubernetes-dashboard-amd64
"'
Start the Kubelet
://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/etcd --addr=127.0.0.1:4001 --bind-addr=0.0.0.0:4001 --data-di
0. Preface
Overall architecture directory: ASP. NET core distributed project-Directory
k8s Schema Catalog: Kubernetes (K8S) cluster deployment (K8S Enterprise Docker container cluster Management) series catalog
1. Deploy Master Components
The components of the master server are: Kube-apiserver, Kube-controller-manager, Kube-scheduler
So you need to download k8s master,:github.com/kubernetes/
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,
created
--CLUSTER-CIDR must be consistent with Kube-apiserver's--service-cluster-ip-range option value
Kube-proxy determines the internal and external traffic of the cluster according to the--CLUSTER-CIDR, and kube-proxy the request to access the Service IP after specifying the--CLUSTER-CIDR or--masquerade-all option SNAT
--kubeconfig the specified configuration file embeds the Kube-apiserver a
/ Kubernetes-dashboard.yamlDashboard will be in kube-system Create your own Deployment and Service in namespace. because the Service isClusterIPtype, for ease of use, we cankubectl --namespace=kube-system edit service kubernetes-dashboardmodified intoNodePorttype. Save the c
Official Document: HTTPS://WWW.KUBERNETES.ORG.CN/DOC-11The Kubernetes cluster contains the node agent Kubelet and master components (APIs, scheduler, etc), all based on a distributed storage system. The following diagram is an architectural diagram of the kubernetes.Kubernetes nodeIn this system architecture diagram, we divide the service into services running on the work nodes and the services that make up
. AddCommand (Newcmdget (f, out)) Cmds. AddCommand (Newcmddescribe (f, out)) Cmds. AddCommand (Newcmdcreate (f, out)) ... return cmds}
So cmd := cmd.NewKubectlCommand(cmdutil.NewFactory(nil), os.Stdin, os.Stdout, os.Stderr) what you get cmd is a cobra.Command pointer to it.
cmdutil.NewFactoryCode ( k8s.io/kubernetes/pkg/kubectl/cmd/util/factory.go ):
Newfactory creates a factory with the default Kubernetes
Kubernetes components and role distribution component functions:
-Etcd a highly available k/v key value to the storage and service discovery system-Flannel The communication of the container network of the boast host-Kube-apiserver provides API calls to Kubernetes clusters-Kube-controller-manager ensure Cluster servi
1. Reference documentationhttp://traefik.cn/2. Simple way to accessReference documentshttps://tonybai.com/2018/06/25/the-kubernetes-ingress-practice-for-https-service/Previous: Traefik Basic deployment record, describes the simplest HTTP access Traefik, the access process reference is shown below:Client---(via HTTP)---> Traefik----(via HTTP)----;? ServicesNow to practice is more secure and more complex HTTP
[TOC]Introduction to Kubernetes DispatchingIn addition to having the Kubernetes cluster scheduler automatically select a node for the pod resource (the default schedule is that the resources are sufficient and the load is as average as possible), there are situations where we want to have more control over how the pod should be dispatched. For example, some of the machines in the cluster are better configur
so on is called the "Replication Controller", where multiple pods of an application can share a single machine.Kubernetes supports a special network model, Kubernetes creates an address space and does not dynamically allocate ports, which allows the user to select any port they want to use, and for this function, it assigns an IP address to each pod. Kubernetes provides an abstraction of the
/config ' {" Network ":" 172.17.0.0/16 "} ' PS: where the network number 172.17.0.0/16 with the DOCKER0 network in Docker (if not consistent, can modify the DOCKER0 network or configure the above ETCD network); Atomic.io corresponds to Flannel_etcd_prefix in the flannel configuration below;//run ETCD service [[emailprotected] ~]# systemctl start Etcd[[email protected] ~]# systemctl enbale etcd Install kubernetes
=" border:0px; Vertical-align:middle; "/>This mode allows each developer to debug the beta environment, whether it is changing the configuration or the code update will need to communicate operations personnel to operate, so that each operator to use more energy to maintain a set of additional systems and even more environment, daily walk in beta, online between. It's a bit of a headache.Would prefer to have such a pattern650) this.width=650; "Src=" http://blog.tingyun.com/dynamic/transitionReso
1. The following error was reported during the creation of Nginx pod:#kubectlcreate-F Nginx-pod.yaml from " Nginx-pod.yaml " " Nginx " is for default/default is automatically created and added to the service accountWorkaround:1> Modify the Kube_admission_control parameter in the/etc/kubernetes/apiserver file.Before modification:Kube_admission_control="--admission_control=namespacelifecycle,namespaceexists
For those who are interested in this offline event, please click here to sign up for a free ticket.In March this year, Docker had just finished its 5 birthday, and for five years, Docker had gradually matured in technology and practice, and embraced kubernetes at the end of last year.May 19, NetEase Cloud will co-host Docker Meetup, invite industry Docker deep practice enterprise, share in container, micro-service
This is a creation in
Article, where the information may have evolved or changed.
Node(also known minion as) runs docker container , and master is responsible for scheduling the management of these container .
MasterRun the following services:
API Server-nearly All the components on the master and nodes accomplish their respective tasks by making API calls. These is handled by the API Server running on the master.
ETCD-ETCD is a service
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.