当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- 想要忘记以前连接到Mac的WiFi网络,试试这个方法!
- 某618大促项目的复盘总结
- 一万四千字分布式事务原理解析,全部掌握你还怕面试被问?
- [original] the impact of arm platform memory and cache on the real-time performance of xenomai
- Using pipe() to improve code readability in pandas
- Andque.
- Microservice - how to limit and fuse service current
- RECH8.0版本学习 days 12 rh134部分
- 分享几个我日常使用的VS Code插件
- PHP安全:变量的前世今生
猜你喜欢
一万四千字分布式事务原理解析,全部掌握你还怕面试被问?
How to learn technology efficiently
CI / CD of gitlab continuous integrated development environment
Vue: Axios uses this pointer
Web API series (3) unified exception handling
DOM节点操作
C# 枚举权限 |和||,&和&&的区别
我们为什么需要软件工程——从一个简单的项目进行观察
带你深入了解 GitLab CI/CD 原理及流程
傲視Kubernetes(一):Kubernetes簡介
随机推荐
Come on in! Take a few minutes to see how reentrantreadwritelock works!
年薪90万程序员不如月入3800公务员?安稳与高收入,到底如何选择?
After pulling four message queues into a group, they quarreled
CI / CD of gitlab continuous integrated development environment
PHP安全:变量的前世今生
chrome浏览器跨域Cookie的SameSite问题导致访问iframe内嵌页面异常
Classroom exercises
【QT】QThread原始碼淺析
How to learn technology efficiently
如何高效的学习技术
9. Routingmesh service communication between clusters
If you want to forget the WiFi network you used to connect to your Mac, try this!
低代码 vs 模型驱动,它们之间到底是什么关系?
DOM节点操作
分享几个我日常使用的VS Code插件
OpenCV計算機視覺學習(10)——影象變換(傅立葉變換,高通濾波,低通濾波)
[note] error while loading pyv8 binary: exit code 1 solution
AFO记
AC86U kx上网
Don't treat exceptions as business logic, which you can't afford