当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- Analysis of the original code of [QT] qthread
- 大数据算法——布隆过滤器
- [graffiti footprints of Internet of things] mainstream communication mode of Internet of things
- 深入浅出大前端框架Angular6实战教程(Angular6、node.js、keystonejs、
- What should be considered in the promotion plan outside the station?
- Mac新手必备小技巧
- PHP security: the past and present of variables
- Tips for Mac novices
- A detailed explanation of microservice architecture
- Big data algorithm - bloon filter
猜你喜欢

How to learn technology efficiently

【涂鸦物联网足迹】物联网主流通信方式

Win10官方1909版本无法打开windows安全中心中病毒和威胁防护的实时保护解决方案。

Reflection on a case of bus card being stolen and swiped

On the coverage technology and best practice of go code

Let's talk about the locks in the database

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

vscode 配置

Vscode configuration

Application and principle of handlermethodargumentresolver
随机推荐
[note] error while loading pyv8 binary: exit code 1 solution
Using LWA and lync to simulate external test edge free single front end environment
graph generation model
laravel8更新之维护模式改进
Exclusive interview with Yue Caibo
分享几个我日常使用的VS Code插件
awk实现类sql的join操作
From technology to management, the technology of system optimization is applied to enterprise management
留给快手的时间不多了
栈-括号的匹配
DOM node operation
Tips for Mac novices
浅谈HiZ-buffer
Bgfx compilation tutorial
年薪90万程序员不如月入3800公务员?安稳与高收入,到底如何选择?
Key points of C language -- index article (let you fully understand indicators) | understand indicators from memory | complete analysis of indicators
微服務 - 如何進行服務限流和熔斷
In the age of screen reading, we suffer from attention deficit syndrome
C语言I博客作业03
C语言Ⅰ博客作业03