当前位置:网站首页>Analysis of kubernetes service types: from concept to practice
Analysis of kubernetes service types: from concept to practice
2020-11-07 20:15:00 【InfoQ】
stay Kubernetes in , A service always enables its network to access one or a group of Pod On . The service will be selected according to the tag Pod And when networking these services , It will select all services in the cluster selector A match Pod, And choose one of them , Then forward the network request to it .
Kubernetes service vs Deployment
stay K8S How should we distinguish between Deployment And services ?
- Deployment Mainly responsible for making a group pod Keep running in the cluster
- Services are mainly responsible for enabling a group of pod Network access
We can use deployment Instead of using services , So we can keep a few of the same Pod stay K8S Running in cluster . Besides ,Deployment We can expand and shrink ,pod You can also copy . stay Kubernetes in , Single pod It can be accessed separately directly through the network request , So track pod There will be some difficulties .
We can also use a service type without having to deployment. If we do that , Will create a single pod, It's not like we're in deployment Create all of them together pod. however , We have another alternative , That is, our services can choose according to the tags assigned to them , To route network requests to these Pod.
How do we discover Kubernetes Service? ?
stay Kubernetes in , There are two ways to discover services :
Link to the original text :【https://www.infoq.cn/article/qCQWaB2ZzcUTc2LqXBpr】. Without the permission of the author , Prohibited reproduced .
版权声明
本文为[InfoQ]所创,转载请带上原文链接,感谢
边栏推荐
- 11. Service update
- 【涂鸦物联网足迹】物联网主流通信方式
- In simple terms, the large front-end framework angular6 practical course (angular6 node.js 、keystonejs、
- PHP security: the past and present of variables
- Technical debt is a lack of real understanding of business functions- daverupert.com
- Win10官方1909版本无法打开windows安全中心中病毒和威胁防护的实时保护解决方案。
- 低代码 vs 模型驱动,它们之间到底是什么关系?
- Don't treat exceptions as business logic, which you can't afford
- Deep into web workers (1)
- awk实现类sql的join操作
猜你喜欢
Why do we need software engineering -- looking at a simple project
深入浅出大前端框架Angular6实战教程(Angular6、node.js、keystonejs、
OpenCV計算機視覺學習(10)——影象變換(傅立葉變換,高通濾波,低通濾波)
RECH8.0版本学习 days 12 rh134部分
Bgfx compilation tutorial
如何高效的学习技术
Mate 40系列发布 搭载华为运动健康服务带来健康数字生活
工作1-3年的程序员,应该具备怎么样的技术能力?该如何提升?
AC86U kx上网
vue踩坑:axios使用this指针
随机推荐
小熊派开发板实践:智慧路灯沙箱实验之真实设备接入
The CPU does this without the memory
AC86U kx上网
想要忘记以前连接到Mac的WiFi网络,试试这个方法!
Using LWA and lync to simulate external test edge free single front end environment
[graffiti footprints of Internet of things] mainstream communication mode of Internet of things
What should be considered in the promotion plan outside the station?
【原創】ARM平臺記憶體和cache對xenomai實時性的影響
三步一坑五步一雷,高速成长下的技术团队怎么带?
C語言重點——指標篇(一文讓你完全搞懂指標)| 從記憶體理解指標 | 指標完全解析
Code Review最佳实践
Mac新手必备小技巧
C语言Ⅰ博客作业03
聊一聊数据库中的锁
After pulling four message queues into a group, they quarreled
PHP security: the past and present of variables
From technology to management, the technology of system optimization is applied to enterprise management
【QT】QThread原始碼淺析
AFO记
不要把异常当做业务逻辑,这性能可能你无法承受