当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- laravel8更新之维护模式改进
- OpenCV計算機視覺學習(10)——影象變換(傅立葉變換,高通濾波,低通濾波)
- awk实现类sql的join操作
- Mate 40系列发布 搭载华为运动健康服务带来健康数字生活
- Application and principle of handlermethodargumentresolver
- C enumerates the differences between permissions |, and |
- 模型预测准确率高达94%!利用机器学习完美解决2000亿美元库存难题
- 把 4个消息队列都拉到一个群里后,他们吵起来了
- 从技术谈到管理,把系统优化的技术用到企业管理
- 栈-括号的匹配
猜你喜欢
随机推荐
栈-括号的匹配
Classroom exercises
What kind of technical ability should a programmer who has worked for 1-3 years? How to improve?
使用 Xunit.DependencyInjection 改造测试项目
[original] the impact of arm platform memory and cache on the real-time performance of xenomai
浅谈HiZ-buffer
不懂数据库索引的底层原理?那是因为你心里没点b树
C language I blog assignment 03
一万四千字分布式事务原理解析,全部掌握你还怕面试被问?
On hiz buffer
C# 枚举权限 |和||,&和&&的区别
在pandas中使用pipe()提升代码可读性
课堂练习
C enumerates the differences between permissions |, and |
Microservice - how to limit and fuse service current
技术总监7年自述——如何选择一家好公司
C language I blog assignment 03
阿里terway源码分析
Analysis of the original code of [QT] qthread
On the coverage technology and best practice of go code