ObjectiveThis article is a reading note, specific reference to Mr. Nu Bongfei's original "Kubernetes Guide", thank the original author, salute!I. Introduction of BorgBorg is a large-scale cluster management system within Google, which is responsible for the scheduling and management of many core services within Google.The goal of Borg is to enable users to focus on their core business without having to worr
Kubernetes architecture and component introduction of open-source container Cluster Management System
This article is based on an Infoq article (see the reference section) and has been modified based on your understanding in difficult areas. For more information about deploying kubernetes on Ubuntu, see.
Together we will ensure that
KubernetesKubernetes is the Google Open Source container cluster Management system, which provides application deployment, maintenance, extension mechanisms and other functions, using kubernetes can easily manage the cross-machine operation of containerized applications, the main functions are as follows:1) Use Docker for application wrapping (package), instantiation (instantiate), and run.2) Run and manage containers across machines in a clustered m
functions are as follows:
1 Use Docker for application wrapping (package), instantiating (instantiate), running (run).
2 to run and manage the containers across the machine in a cluster manner.
3 to solve the communication problem between Docker and cross machine containers.
4 Kubernetes's self-healing mechanism makes the container cluster always run in the user's desired state.
The current kubernetes support GCE, Vshpere, CoreOS, OpenShift, Azure an
file), Then, based on the configuration information, a proxy process is started on Minion and the corresponding service port is monitored, and when an external request occurs, proxy distributes the request to the correct container processing on the backend based on the load balancer.Therefore, the proxy not only solves the problem of the same host service port conflict, but also provides the service forwarding service Port's ability to provide services externally, the proxy backend uses the ran
name to go to Docker to query the hash value of the corresponding container. If the container is found and the hash value is different, the container process in Docker is stopped and the pause container process associated with it is stopped;If the container is aborted and the container does not have a specified Restartpolicy (restart policy), no processing is done.Call the Docker client to download the container image and call the Docker client to run the container.Container Health CheckThe pod
backend pods.Third, package installationCENTOS7 system can be installed by Yum mode. The latest version of the current kubernetes is 1.9, it is not recommended to use the 1.9 version in the production environment, the official website recommended the use of KUBEADM deployment, in order to more simple and more systematic learning kubernetes cluster components, this series of articles using the RPM method of
Introduction and practice of pod in kubernetes
The concept of podDetailed pod explanation can refer to k8s official website, the concept of pod mainly has the following points:(1) Pod is the smallest and simplest unit that you can create and deploy in Kubernetes. A pod represents a process that runs in a cluster;(2) How to use pod in kubrenetes cluster;(3) Ho
communication and provides a platform foundation for the practice of microservices architectures. At the pod level, as the smallest object that kubernetes can manipulate, its characteristic is the native support to the Micro Service architecture.July 22, 2015 iteration to v1.0 and officially announced, which means that the open source container orchestration system can be formally used in the production environment. At the same time, Google joined th
that provide services to the backend, it is by identifying the container's labels to select the correct container. Proxy: It is designed to address the external network's ability to access application services provided across the container in a machine cluster. Proxy provides TCP/UDP sockets proxy, each creating a service,proxy mainly from ETCD to obtain services and endpoints configuration information, or can also be obtained from file, Then, based on the configuration information, a proxy pro
Kubernetes section Volume type Introduction and Yaml sample--emptydir (Local data volume)
DescriptionThe Emptydir type of volume is created when the pod is dispatched to a host, and the container within the same pod can read and write to the same file in the Emptydir. Once the pod has left the host, the data in the Emptydir will be permanently deleted. So the current Emptydir type of volume is primarily
Kubernetes section Volume type Introduction and YAML sample--NFS (network data volume)
DescriptionNFS volumes allow existing NFS (network file system) shares to be mounted in your container. Unlike Emptydir, when the Pod is deleted, the contents of the NFS volume are retained and the volume is simply unloaded. This means that the NFS volume can pre-populate the data, and it can "toggle" the data between
what is kubernetes.
Kubernetes is a new, container-based distributed architecture leading solution. is an open source version of Google's internal cluster management system, Borg. It was not known until April 2015, when the papers were published. Kubernetes is an open platform for development. is not limited to any one language and does not qualify any programm
1, Go language introduction:
(1) The Go language is the second open source programming language released by Google 2009.
(2) The Go language is optimized for programming multi-processor system applications, with go-compiled programs that are comparable to the speed of C or C + + code, and are more secure and support parallel processes.
2. Go language Features
Advantage:
(1) static type, compiled open source language
(2) Scripting syntax
(3) Nat
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,
-nfspathSpecContainers-Name:test-nfspathimage:registry:5000/back_demon:1.0Volumemounts:-Name:nfs-storageMountpath:/home/laizy/test/Command-/run.shVolumes-Name:nfs-storageNfs:server:192.168.20.47Path: "/data/disk1"4, Secret (Information data volume)Kubemetes provides secret to handle sensitive data, such as passwords, tokens, and keys, and secret provides a more secure mechanism (BASE64 encryption) to prevent data leakage than to configure sensitive data directly in the pod definition or image. S
Master nodeKube-apiserverProvides a unique operation entry for the resource object, and all other components manipulate the resource object through the API it provides;EtcdDistributed key-value storage System. Used to keep cluster status, such as pod, service, and other object informationKube-controller-managerResponsible for maintaining the status of the cluster, such as fault detection, auto-scaling, rolling updates, etc.Cloud-controller-managerTo handle regular background tasks in a cluster,
assumption is, the binary runs inside akubernetes cluster and service proxy would be used. --kubeconfig string Path to Kubeconfig file with authorization and master location information. --log-flush-frequency duration Maximum Number of seconds between log flushes (default 5s)--log_backtrace_at value When logging hits line filE:n, emit a stack trace (default:0)--log_dir value If non-empty, write log files in the This directory --logtostderr value log to standar
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.