当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- C語言重點——指標篇(一文讓你完全搞懂指標)| 從記憶體理解指標 | 指標完全解析
- 大数据算法——布隆过滤器
- Advanced concurrent programming series 9 (lock interface analysis)
- How to learn technology efficiently
- If you want to forget the WiFi network you used to connect to your Mac, try this!
- The official 1909 version of win10 cannot open the real-time protection solution of virus and threat protection in windows security center.
- 屏读时代,我们患上了注意力缺失候群症
- On the coverage technology and best practice of go code
- The most hard core of the whole network explains the computer startup process
- awk实现类sql的join操作
猜你喜欢

Didi's distributed ID generator (tinyid), easy to use

Mate 40 series launch with Huawei sports health service to bring healthy digital life

一次公交卡被“盜刷”事件帶來的思考

三步一坑五步一雷,高速成长下的技术团队怎么带?

HandlerMethodArgumentResolver使用和原理

chrome浏览器跨域Cookie的SameSite问题导致访问iframe内嵌页面异常

ajax 载入html后不能执行其中的js解决方法

课堂练习

Using pipe() to improve code readability in pandas

Using rabbitmq to implement distributed transaction
随机推荐
Opencv computer vision learning (10) -- image transform (Fourier transform, high pass filter, low pass filter)
Using pipe() to improve code readability in pandas
深入web workers (上)
「混合云」会是云计算的下一个战场吗?
微服務 - 如何進行服務限流和熔斷
C语言Ⅰ博客作业03
Rech8.0 learning days 12 rh134
[graffiti footprints of Internet of things] mainstream communication mode of Internet of things
DOM node operation
课堂练习
Facebook开源框架如何简化 PyTorch 实验
我们为什么需要软件工程——从一个简单的项目进行观察
模型预测准确率高达94%!利用机器学习完美解决2000亿美元库存难题
留给快手的时间不多了
CI / CD of gitlab continuous integrated development environment
利用线程通信、解决缓存穿透数据库雪崩
使用 Xunit.DependencyInjection 改造测试项目
一万四千字分布式事务原理解析,全部掌握你还怕面试被问?
[original] the impact of arm platform memory and cache on the real-time performance of xenomai
如何以计算机的方式去思考