first, the core concept
1, Node
node as a working node in a cluster, running a real application, the smallest unit of Kubernetes managed on node is pod. Node runs kubernetes kubelet, Kube-proxy service processes that are responsible for pod creation, start-up, monitoring, restart, destruction, and load balancing of software patterns.
Node contains information: node address: The IP address of the host, or
This is a creation in
Article, where the information may have evolved or changed.
kubectlFunctions that are actually running ( k8s.io/kubernetes/pkg/kubectl/app/kubectl.go ):
func Run() error { cmd := cmd.NewKubectlCommand(cmdutil.NewFactory(nil), os.Stdin, os.Stdout, os.Stderr) return cmd.Execute()}
NewKubectlCommandThe code ( k8s.io/kubernetes/pkg/kubectl/cmd/cmd.go ):
//Newkubectlcommand creates t
A description of the application scenarioContinuous tracking research kubernetes also for some time, kubernetes as Google open-source production-level container scheduling system from open source has received a lot of attention. A number of research and development companies have researched Kubernetes's design concepts and application scenarios and soon organized developers to combine
KUBERNETES cluster to build the basic environmentSystem Environment # Cat/etc/redhat-releasecentos Linux release 7.3.1611 (Core)
Host name Settings Centos-master 192.168.59.135centos-minion1 192.168.59.132centos-minion2 192.168.59.133Restart server after SELinux and Firewalld are turned off# systemctl Stop firewalld# systemctl disable firewalld# setenforce 0# sed-i ' s/^selinux=.*/selinux=disableds/'/etc/seli Nux/configMaster Node Installation D
The content of this section:
Service Discovery and load balancing
Ingress Combat
First, service discovery and load balancingIn the previous installation deployment Kubernetes cluster, it was simple to demonstrate that pod and Service,kubernetes implemented service discovery and load balancing for containers within the Kubernetes cluster through
Download deployment Files according to official documentshttps://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yamlEdit this and replace the role name with the following command implementation:
Create Kubernetes-dashboard-rbac.yamlDownload the deployment file, there is a place to note, it is created in
Kubernetes cluster configuration notes
This article describes how to configure a Kubernetes cluster. A kubernetes cluster consists of a master node and a slave node.
Run the following services on the Master node:Etcd (the etcd service can also be run independently, not necessarily on the Master node)Kube-apiserverKube-controller-managerKube-schedulerKubeletKube-p
This article CSDN blog address: http://blog.csdn.net/huwh_/article/details/71308171First, the kubernetes of the general structure of the two, kubernetes each component introduction (a) kube-master[control node]
Workflow Flowchart for Master
Kubecfg sends a specific request, such as creating a pod, to the Kubernetes Client.
Docker Network BasicsSince Kubernetes is based on the Docker container as the carrier of the application release, the network characteristics of Docker also determine that kubernetes in building a container interoperability network must solve the problem of Docker's own network.Network namespacesTo support multiple instances of the network protocol stack, Linux introduces a network namespace in the network
This is a creation in
Article, where the information may have evolved or changed.
K8s Offline installation package Three-step installation, simple to unbelievable
Kubeadm Source Code Analysis
To say the truth, Kubeadm code is sincere, the quality is not very high.
A few key points to first talk about some of the core things Kubeadm did:
Kubeadm Generate certificate in/etc/kubernetes/pki directory
Kubeadm generate a static pod Yaml configurati
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) How to manage multiple containers in pod
Unde
[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
Kubernetes is Google 's Open source container cluster management system. It is built on Docker technology and provides a whole set of functions, such as resource scheduling, deployment operation, service discovery, expansion and contraction capacity, for containerized applications, which can be regarded as Mini-paas platform based on container technology. The purpose of this article is to comb the architecture, concepts, and basic workflows of
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 the cluster-level dashboard.The
Service discovery mechanism Kubernetes provides two ways to discover the service:1. Environment Variables When the pod is running, Kubernetes writes the information for the service that existed before This method requires that the pod must be started after the service. The pod that was started before the service will not have an environment variable for that service. There is no such limit in the way
Summary: Kubernetes is Google open source container cluster management system, built on Docker, for containerized applications to provide resource scheduling, deployment operations, service discovery, capacity expansion and other functions. Pods are the smallest deployment units that are created, dispatched, and managed, and this article describes the communication and scheduling between these pods in detailOverviewThe Pods in
The reference urls:https://github.com/kubernetes/kubernetes/blob/master/docs/getting-started-guides/ ubuntu-calico.mdhttps://github.com/projectcalico/calico-docker/blob/master/docs/kubernetes/ Kubernetesintegration.md I have 3 hosts:10.11.151.97, 10.11.151.100, 10.11.150.101. Unfortunately, there is no Internet access in all 3 hosts. Following the guide, I-Build
Here, I'll show you how to install a kubernetes cluster that contains 1 Master 2 minions.Environmental requirements:CENTOS7 64-bit system three machinesmaster:192.168.5.131minions:192.168.5.132minions:192.168.5.133Components of the Kubernetes:EtcdFlannelKube-apiserverKube-controller-managerKube-schedulerKubeletKube-proxyFirst, deploy to Centos7The figure is then furnishedPrerequisite
Each machine disables iptables to avoid iptables conflicts
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.