当前位置:网站首页>Kubernetes in-depth understanding of kubernetes (I)
Kubernetes in-depth understanding of kubernetes (I)
2022-06-28 13:37:00 【Foxconn quality inspector zhangquandan】
Traditional classification of cloud computing
The cloud itself is designed to meet the needs of a class of computing abstractions
The earliest clouds were basically iass layer , So-called iass Layer is used to manage the infrastructure layer , Provide an operating system one by one , The business only needs to be deployed on the operating systems one by one , Of course, these are virtual machines . What problems will this bring ? Applications are operating system oriented , It separates a lot of things , For example, how can a highly available application be deployed to different nodes ? These have to be concerned at the application level , If only give me the operating system , Then every company should solve the corresponding problems .
Later, whether the intermediate level can be abstracted , Manage the operating system , Middleware management , Runtime management , I'll help you set up the whole platform , All you need to do is run your application . This is it. pass Is in the iass Improve on .
The latter is whether we can focus on software , Application centric , Provide a software , Then you just need to use the software , This is it. sass, Provide some software for you to use directly .
Kubernetes The ecological system
kubernetes To break the iass sass pass, The boundary is not so clear , because Kubernetes Based on these standards api, To describe all escrow objects , These objects drill down to the infrastructure , Upward exploration is the application of abstraction .
It is through unity api Unify the objects at all levels , The reason why it is vague , Because it goes down iass, You can put the whole iass Connect in , There is a powerful pass, With pass Then there are application-oriented , So it can provide sass service .
Kubernetes Design concept
The application supports stateful replica sets and stateless replica sets , To ensure high availability of applications .
k8s It is also highly available , Plane components can be deployed as highly available when they are built .
Layered architecture
kubernetes Several interface abstractions are implemented downward , One is called cri runtime abstract , The following can be accessed docker containerd, You can also pick up crio, Down is more right plugin Support for , And flexibility of choice , bring kubernetes It can run in different environments .
API Design principles
Kubernetes How to complete business description through object composition
Through one deployment Create a business deployment object ,deployment control Will build replicaset,replicaset Will build pod,pod Will be bound by the scheduler , This is part of the business deployment description , The object involved is the time when the business is to be released , I want to define a service,service After creating kube-proxy It will be configured with various load balancing configurations and dns The domain name service will be configured for it , To publish a service, I need to define a service object ,service You can go through it again ingress A traffic entry to publish to the entire cluster data surface API Inside the gateway .
Therefore, the description of the whole business deployment is completed through the combination of various objects .
Architecture design principles
Here's another point , Only api server Be able to access etcd, Other services can only be provided through apiserver To access the cluster .
We encourage event monitoring , Instead of polling ,etcd and apiserver Can support event notification , You don't need to poll , The polling query puts etcd and apiserver Pull dead , Why do I need to listen , Because you need to keep a long connection , All objects change frequently , Changes to these objects make etcd and apiserver Take the initiative to issue , Instead of polling over and over again .
guide (Bootstrapping) principle
Can I use kubernetes management kubernetes Control plane , It's called self-hosting, adopt kubernetes Component handle kubernetes Some basic components , That is the whole kubernetes Pull it up , This is the same. kubeadm To load the cluster , It passes through kubelet In a static state pod To load the entire cluster , This is it. self-hosting.
Can I use binary to build a cluster , Sure , Learn... In your early days kubernetes You should understand how each service is configured , It's a very good way , However, this is not recommended in production clusters , since kubernetes It can ensure the high availability of applications , Then we can use kubernetes To manage kubernetes The plane itself ,kubernets on kubernets It's a very good way .
边栏推荐
- 为什么新的5G标准将为技术栈带来更低的 TCO
- How to open an account of Huatai Securities? How to handle the account opening is the safest
- Action interprets value. The chairman of chenglian Youpin Han attended the Guangdong Yingde flood fighting donation public welfare event
- 恒生电子:金融分布式数据库LightDB通过中国信通院多项测评
- 设计人工智能产品:技术可能性、用户合意性、商业可行性
- 开源项目维权成功案例: Spug 开源运维平台成功维权
- Which company has a low rate for opening a securities account? How to open an account is the safest
- Solution to directory access of thinkphp6 multi-level controller
- Latest summary! 30 provinces announce 2022 college entrance examination scores
- Why do more and more users give up swagger and choose apifox
猜你喜欢
The counter attack story of Fu Jie, a young secondary school student: I spent 20 years from the second undergraduate to the ICLR outstanding Thesis Award
How fragrant! The most complete list of common shortcut keys for pychar!
ShareIt has outstanding strength and landed in the top 7 of the global IAP strength list
MySQL multi table joint query
中国数据库技术大会(DTCC)特邀科蓝SUNDB数据库专家精彩分享
2.01 backpack problem
真香啊!最全的 Pycharm 常用快捷键大全!
From PDB source code to frame frame object
Yii2 writing the websocket service of swoole
StackOverflow 2022数据库年度调查
随机推荐
Centos7 - installing mysql5.7
En parlant d'exception - que se passe - t - il lorsque l'exception est lancée?
Unit test ci/cd
Jupyter notebook中添加虚拟环境
How fragrant! The most complete list of common shortcut keys for pychar!
1015. picking flowers
Prediction of red wine quality by decision tree
Complete backpack beginner chapter "suggestions collection"
Google Earth Engine(GEE)——联合国粮农组织全球有机土壤面积(1992-2018年度)
电子元器件分销10亿俱乐部[通俗易懂]
无心剑英译朱熹《观书有感二首·其一》
Buuctf:[wustctf2020] plain
ShareIt has outstanding strength and landed in the top 7 of the global IAP strength list
Latest summary! 30 provinces announce 2022 college entrance examination scores
How vscade sets auto save code
Introduction to PWN (1) binary Basics
做一个墨水屏电子钟,炫酷!
单元测试 CI/CD
Arduino-ESP32闪存文件插件程序搭建和上传
几百行代码实现一个 JSON 解析器