当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- Key points of C language -- index article (let you fully understand indicators) | understand indicators from memory | complete analysis of indicators
- Business Facade 与 Business Rule
- 工作1-3年的程序员,应该具备怎么样的技术能力?该如何提升?
- Using rabbitmq to implement distributed transaction
- 我们为什么需要软件工程——从一个简单的项目进行观察
- Technical debt is a lack of real understanding of business functions- daverupert.com
- 微服務 - 如何進行服務限流和熔斷
- A detailed explanation of microservice architecture
- Talk about sharing before paying
- 使用 Xunit.DependencyInjection 改造测试项目
猜你喜欢

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

大数据算法——布隆过滤器

vue踩坑:axios使用this指针

If you want to forget the WiFi network you used to connect to your Mac, try this!

On the coverage technology and best practice of go code

使用 Xunit.DependencyInjection 改造测试项目

Kubernetes服务类型浅析:从概念到实践

浅谈HiZ-buffer

laravel8更新之维护模式改进

如何高效的学习技术
随机推荐
如何应对事关业务生死的数据泄露和删改?
The official 1909 version of win10 cannot open the real-time protection solution of virus and threat protection in windows security center.
Kubernetes服务类型浅析:从概念到实践
栈-括号的匹配
On hiz buffer
AFO记
Using thread communication to solve the problem of cache penetrating database avalanche
Huawei HCIA notes
The JS solution cannot be executed after Ajax loads HTML
If you want to forget the WiFi network you used to connect to your Mac, try this!
Tips for Mac novices
盘点那些争议最大的编程观点,你是什么看法呢?
MongoDB下,启动服务时,出现“服务没有响应控制功能”解决方法
In simple terms, the large front-end framework angular6 practical course (angular6 node.js 、keystonejs、
[graffiti footprints of Internet of things] mainstream communication mode of Internet of things
OpenCV計算機視覺學習(10)——影象變換(傅立葉變換,高通濾波,低通濾波)
如何以计算机的方式去思考
快速上手Git
华为HCIA笔记
Application and principle of handlermethodargumentresolver