1.1. What is Kubernetes?A new approach to distributed architecture based on container technologyA complete distributed system support platformKubernetes is an open source project launched by the Google team, which aims to manage containers across multiple hosts, provide basic deployment, maintenance, and use scaling, primarily to implement the language as the Go language.1.2. Basic ConceptsNode: In Kubernetes
Kubernetes is a master-slave structure, it mainly implements the Docker of the dispatch, the following detailed introduction of my understanding of the Kubernetes architecture:
Master node :
API Server: Provides the API interface of cluster management, it becomes the central hub of data interaction and communication between each function module in the cluster, and has the complete cluster security mechani
that maintain the Mesos project, to upgrade kubernetes to a standard way of interacting with compute clusters. Kubernetes has re-implemented Google's experience in building cluster applications. These concepts include the following:
Pods: A method of organizing containers together;
Replication Controllers: A method of controlling the life cycle of a container (translator Note: Replication controll
are many components involved: Mesos (c + +), Marathon (Scala), Mesos-dns (Golang), and so on. It's not easy to find developers who are familiar with so many languages.
All schedulers do not have a good abstraction for microservices, just like the abstraction of Pod,service,namespace. These are easy to implement, but not yet implemented.
Kubernetes Advantages
Design a fairly sophisticated
The best technical combat from Docker to Kubernetes": Https://pan.baidu.com/s/18nnAZJeQvS_wO_SGBx-vvQ"Docker is the cornerstone of a world-changing box, micro-service, leading the cloud into the 2.0 eraDocker is used to manage containers, k8s is a container orchestration tool, very powerful!Docker is a challenging and interesting open source project that completely frees up the power of Linux virtualization, greatly easing the supply of cloud computin
What is pod? This is a problem. I can hardly find two identical answers.
From ISO/IEC 14882: 2003 (e) p153:
... A pod-struct is an aggregate class that has no non-static data members of type non-pod-struct,
Non-pod-Union (OR array of such types) or reference, and has no user-defined copy assignment operator
And no use
Contact pod later found to use it to manage the third-party code is very convenient, after the creation of their own modules to put on the idea of the pod, after a series of Baidu and Google, basically achieved, the following is my realization of the steps and understanding:Standard POD usage processand ours is this.I. Generating a private
This article starts with my public number clouddeveloper, and you are welcome to join me in learning cloud computing.
During the Ming Dynasty, Emperor Chengzu Zhu Di, in order to develop overseas trade and establish his prestige, sent Zheng He seven voyages, set the ancient China's largest, the most ships (more than 240 ships), the most seafarers (27,000 people), the longest time, than the European countries sailing time of half a century earlier ocean voyage feat.
in the previous section we discussed the services running on the Kubernetes architecture Master,This section discusses node nodes. Node is where the Pod runs, Kubernetes supports Docker, Rkt, and other container runtime. The Kubernetes components running on node have Kubelet, Kube-proxy, and
flannel network in ETCD[[email protected] ~]# etcdctl mk/atomic.io/network/config ' {"Network": "172.17.0.0/16"} 'Installation Configuration Kubernetes NodeThe following operations are performed on Cmnode1, Cmnode2, Cmnode31. Install flannel Kubernetes-nodeYum-y Install flannel Kubernetes-node2. Specify the ETCD service for the Flannel network, modify the/etc/sy
On the left is my personal, if you need further communication, please add. On the right is my public number "OpenStack private cloud", if interested, please pay attention.in the previous post, " Kubernetes Getting Started learning mentioned in the Katacoda experimental environment can be further familiar with the use of k8s , the specific URL is: https://www.katacoda.com/courses/kubernetes/Recently spent s
Tags: cep mes br0 veth host html https DAO docLinux Namespacebridge Popular Romance Linux interface typeBR0 eth0: an interfaceVeth: A pair of interfaces, similar to a network cable, one end has an address, the other end connected to another,Linux 2 namespace connectivityThe different namespace are isolated. Want them to pass, need to use network cable to connect up (veth type mouth, one to ns1, the other end to NS2)Linux 3 Namespace connectivity2 NS Even universal Veth say, 3 NS Even the general
What is a container?Kubernetes is a container management platform. It is conceivable that we need containers to manage them. But what is a container? The best answers to the official Docker documentation are:
A container image is a lightweight, standalone, executable package that contains everything that can be run: Code, runtime, System tools, system libraries, settings. For Linux and Windows-based applications, containerized software can ru
1. Compiling environment
Operating system: Ubuntu 16.04 LTS AMD64
git:2.7.4
docker:1.12.6
2. Compile Steps
2.1 Clone Source Code
# git clone https://github.com/kubernetes/kubernetes.git
# git checkout release-1.7
2.2 To modify the source code is to solve the Gcr.io domestic problems, has been tested, even if ready to gcr.io related mirrors, such as not modify the source code will still be due to network problems caused the compilation failed
edit
expected pod status is consistent with the current status, and the number of pods can be elastically scaled. This mainly ensures the normal operation of the dashboard;Create a kube-dashboard-rc.yaml file with the following content:
apiVersion: v1kind: ReplicationControllermetadata:# Keep the name in sync with image version and# gce/coreos/kube-manifests/addons/dashboard counterpartsname: kubernetes-dashboa
How to build a Kubernetes (k8s) Environment
The official version of k8s is updated too quickly. Many articles on the Internet are outdated and many tools and interfaces have changed. the official website does not have a good understanding. Here we only record the process of setting up the k8s environment and will not talk about many k8s concepts. Therefore, we recommend that you first understand various concepts and then build the environment, then, i
ServiceAccountKubernetes.io/dockercfg: Acting on Docker registry, users download Docker image authentication usingThe specific configuration of Secert has been introduced in the previous article ServiceAccount, this article will not repeat.Let's introduce the persistent storage scheme of k8s, the current storage scheme supported by K8s is as follows:Distributed File System: NFS/GLUSTERFS/CEPHFSPublic cloud storage Scenario: Aws/gce/auzreNFS Storage ScenariosNFS is the abbreviation for the netwo
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
There are two requirements for stateful cluster services: one is storage requirements and the other is cluster requirements.For storage requirements, the Kubernetes solution is: Volume, persistent Volume. For PV, in addition to manually creating a PV pool, the storage system can be automatically created by storage class.For cluster requirements, the Kubernetes solution is pet Set. The Pet Set also initializ
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.