set of endpoint that communicates with each other, which is closer to the network definition in neutron.In CNM, the Docker engine invokes the network implementation via the HTTP REST API to configure the network for the container. These API interfaces cover more than 10 interfaces such as network management, container management, creating endpoint, and so on. The CNM model also implies additional constraints such as the service mechanism, DNS mechani
1. Basic architecture1.1 MasterThe master node consists mainly of four modules: Apiserver, Scheduler, controller manager, ETCD. apiserver. Apiserver is responsible for providing restful Kubernetes API service, it is the unified entrance of the System Management Directive, any operation that increases and deletions the resources should be handed over to apiserver processing and then submitted to ETCD. As
, destroyed, dispatched, and managed. The associated one or more containers (Container) Form a pod, usually in pod containers running the same application. Pods contain containers that run on the same minion (Host), as a single snap-in that shares the same volumes and network NAMESPACE/IP and port space.2.2 ServicesServices is also the basic operating unit of Kubernetes, is the abstraction of real application services, each
node scheduling
v1.9.1
Node node required component
Component Name
Role
Version number
Kubelet
Node nodes core components, responsible for the implementation of master issued tasks
v1.9.1
Kube-proxy
Agent, responsible for Kubelet and Apiserver network. Equivalent to load balancing, transferring requests to back-end pod
v1.9.1
Second, the installation
See the Kubernetes
Kubernetes Basic Primer-Installation Deployment Configuration ExampleDeploying Kubernetes SkydnsKubernetes can provide DNS internal domain name resolution services for pods.Its main function is to provide pods with the ability to resolve the IP directly through the service's name to the corresponding service!1. First add the options in the Kubelet process for eac
).MetricsHere is official suggested solution as follows. For more informaton, please see Tools for monitoring Compute, Storage, and Network ResourcesGrafana + heapster/prometheus + cadvisor + InfluxDBHeapster As a Metircs aggregator and processorInfluxDB Time Series database for storageGrafana As a dashboarding and alerting solutionCadvisor Have been built in Kubelet, which collects host metrics like CPUs, disk space, and memory utilization, in addition to Container metrics.And also, here's a pr
training is a combination of our theory and practice, from the perspective of Docker should scenario, continuous deployment and delivery, how to improve testing efficiency, storage, network, monitoring, security and so on.
First, kubernetes network modelThere are two kinds of IP (pod IP and Service Cluster IP) in the Kubernetes network, the pod IP address is a
-server-linux-amd64.tar.gztar -XZVF Kubernetes-server-linux-amd64. Tar . GZCD kubernetes tar -xzvf kubernetes-src. Tar. gzCopy the binary file to/usr/bin, may prompt overwrite, because the front installed KUBECTL will be installed part, the direct overwrite is good, the following statement uses the-R to overwrite, does not add-R prompts, and this server contain
in the same number of pods as defined
RC also has a magical mechanism:
rolling updates; For example, now that a service has 5 running pods, the pod itself is now in the business of being updated and can be replaced by a mechanism to implement the entire RC update
3:service
Services-as-a-service, an interface tha
, deployment with complex applications, and maintenance of a single container application model. Mount Storage System distributed encryption management application Health Check application instance replica horizontal automatic extension naming and discovery load balancing rolling Upgrades resource monitoring log acquisition and injection support introspection and debugging as well as authentication and authorization
These features provide the simplicity of the platform as a
specific set of pods. The service has its own port and IP. Service provides load balancing for podsNamespaceA physical cluster can be logically divided into multiple virtual cluster, each cluster a namespace. The resources in different namespace are completely isolated.Kubernetes two namespace created by defaultDefault-If you do not specify when creating the resource, it will be placed in the namespace.Kub
Notes on basic concepts of Kubernetes
Kubernetes (K8s) is an open-source system for automatically deploying, scaling, and managing containerized applications. It is an "open-source version" of Google's internal tool Borg ".
Kubernetes is currently recognized as the most advanced container cluster management tool. After the release of
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
features. The architecture of Kubernetes is not covered here, although the architecture is biased, but we finally decide to use it and try to use only its Pod,replicationtroller and service capabilities.
Here are some concepts to explain first:
User: Products, development, testing, operations and other personnel under various product lines.
Region: A preference for geographical concepts such as Beiji
With such a large amount of data, there may be thousands of machines behind it, unable to manually monitor the state of the machine. Therefore, this article introduces the use of the Kubernetes container management tool and, through a simple example, tells you how to build a Spark cluster. Preparation Phase
1. You need to have a running kubernetes cluster and use KUBECTL to configure access permissions for
, the following is installed software and version: Docker:version 17.09.0-ce Oracle virtualbox:version 5.1.20 r114 628 (Qt5.6.2) minikube:version v0.22.2 kuberctl:Client version:v1.8.1 Server version:v1.7.5
Note: The Minikube boot k8s node instance is required to run in the VM virtual machine in this machine, so the VM needs to be installed in advance, where I choose Oracle VirtualBox. K8s run the bottom of the use of Docker containers, so the machine needs to install a good Docker environment,
First, the prefaceKubernetes is Google's Open source container cluster management system, based on Docker to build a container scheduling services, providing resource scheduling, equalization disaster tolerance, service registration, dynamic expansion capacity and other functional kits, the latest version of the current 0.6.2. This article describes how to build a Kubernetes platform based on Centos7.0, bef
regularly back up ETCD data.
To ensure high availability at the datacenter level, we deployed a suite of kubernetes clusters in each data center, each capable of surviving independently, and multiple data centers being prepared for each other.
Compute Resource QoS and oversold
Due to resource constraints, technicians tend to focus too much on single-machine resource utilization. The mechanism of resource sharing and isolation provided by Docker (Cg
Platform Environment: Centos 7.0First, the architecture modeSecond, Core ServicesMaster1) ETCD ServiceETCD is a highly available key-value storage system that Kubernetes uses to store the state of individual resources, enabling restful APIs. The ETCD service acts as the primary database for the Kubernetes cluster and needs to be installed and started before insta
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.