当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- How to choose a good company
- 大数据算法——布隆过滤器
- [random talk] the goal and way of software design
- 使用LWA和Lync模拟外部测试无边缘单前端环境
- In simple terms, the large front-end framework angular6 practical course (angular6 node.js 、keystonejs、
- Why do we need software engineering -- looking at a simple project
- 全网最硬核讲解计算机启动流程
- Using pipe() to improve code readability in pandas
- 是时候结束 BERTology了
- 技术总监7年自述——如何选择一家好公司
猜你喜欢

Advanced concurrent programming series 9 (lock interface analysis)

垃圾分类知识竞赛

Chinese sub forum of | 2020 PostgreSQL Asia Conference: Pan Juan

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

9. Routingmesh service communication between clusters

C语言I博客作业03

Using thread communication to solve the problem of cache penetrating database avalanche

聊聊先享後付

Deep into web workers (1)

HMS Core推送服务,助力电商App开展精细化运营
随机推荐
Application and principle of handlermethodargumentresolver
聊聊先享後付
使用 Xunit.DependencyInjection 改造测试项目
不懂数据库索引的底层原理?那是因为你心里没点b树
Kylin on Kubernetes 在 eBay 的实践
awk实现类sql的join操作
bgfx编译教程
课堂练习
深入浅出大前端框架Angular6实战教程(Angular6、node.js、keystonejs、
Knowledge competition of garbage classification
微服務 - 如何進行服務限流和熔斷
HMS core push service helps e-commerce app to carry out refined operation
Let's talk about the locks in the database
三步一坑五步一雷,高速成长下的技术团队怎么带?
年薪90万程序员不如月入3800公务员?安稳与高收入,到底如何选择?
Opencv computer vision learning (10) -- image transform (Fourier transform, high pass filter, low pass filter)
廬山真面目之二微服務架構NGINX版本實現
websocket+probuf.原理篇
【原創】ARM平臺記憶體和cache對xenomai實時性的影響
Classroom exercises