当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- 利用线程通信、解决缓存穿透数据库雪崩
- On hiz buffer
- Implementation of nginx version of microservice architecture
- RECH8.0版本学习 days 12 rh134部分
- websocket+probuf.原理篇
- Bgfx compilation tutorial
- 模型预测准确率高达94%!利用机器学习完美解决2000亿美元库存难题
- GrowingIO 响应式编程探索和实践
- [original] the impact of arm platform memory and cache on the real-time performance of xenomai
- C enumerates the differences between permissions |, and |
猜你喜欢
深入web workers (上)
Deep into web workers (1)
The most hard core of the whole network explains the computer startup process
如何高效的学习技术
How to choose a good company
9. Routingmesh service communication between clusters
C语言Ⅰ博客作业03
Advanced concurrent programming series 9 (lock interface analysis)
编程界大佬教你:一行Python代码能做出哪些神奇的事情?
一次公交卡被“盜刷”事件帶來的思考
随机推荐
[graffiti footprints of Internet of things] mainstream communication mode of Internet of things
9. Routingmesh service communication between clusters
C语言Ⅰ博客作业03
Exclusive interview with alicloud database of | 2020 PostgreSQL Asia Conference: Wang Xu
技术总监7年自述——如何选择一家好公司
Vscode configuration
站外推广的计划需要考虑哪些呢?
laravel8更新之维护模式改进
快進來!花幾分鐘看一下 ReentrantReadWriteLock 的原理!
留给快手的时间不多了
awk实现类sql的join操作
A detailed explanation of microservice architecture
【QT】QThread原始碼淺析
Win10官方1909版本无法打开windows安全中心中病毒和威胁防护的实时保护解决方案。
awk实现类sql的join操作
30岁后,你还剩下什么?
CI / CD of gitlab continuous integrated development environment
Classroom exercises
C# 枚举权限 |和||,&和&&的区别
浅谈HiZ-buffer