当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- Opencv computer vision learning (10) -- image transform (Fourier transform, high pass filter, low pass filter)
- Web API series (3) unified exception handling
- From technology to management, the technology of system optimization is applied to enterprise management
- 统计文本中字母的频次(不区分大小写)
- [random talk] the goal and way of software design
- 浅谈HiZ-buffer
- Mate 40 series launch with Huawei sports health service to bring healthy digital life
- [漫谈] 软件设计的目标和途径
- The samesite problem of cross domain cookie of Chrome browser results in abnormal access to iframe embedded pages
- CI / CD of gitlab continuous integrated development environment
猜你喜欢
盘点那些争议最大的编程观点,你是什么看法呢?
How to choose a good company
Knowledge competition of garbage classification
RECH8.0版本学习 days 12 rh134部分
vscode 配置
工作1-3年的程序员,应该具备怎么样的技术能力?该如何提升?
使用 Xunit.DependencyInjection 改造测试项目
chrome浏览器跨域Cookie的SameSite问题导致访问iframe内嵌页面异常
30岁后,你还剩下什么?
The samesite problem of cross domain cookie of Chrome browser results in abnormal access to iframe embedded pages
随机推荐
华为HCIA笔记
How to choose a good company
Git代码提交操作,以及git push提示failed to push some refs'XXX'
If you want to forget the WiFi network you used to connect to your Mac, try this!
Blazor 準備好為企業服務了嗎?
Exploration and practice of growingio responsive programming
想要忘记以前连接到Mac的WiFi网络,试试这个方法!
当 TiDB 与 Flink 相结合:高效、易用的实时数仓
How to learn technology efficiently
Vscode configuration
vue踩坑:axios使用this指针
在 Amazon SageMaker 管道模式下使用 Horovod 实现多 GPU 分布式训练
A detailed explanation of microservice architecture
On hiz buffer
聊聊先享後付
从技术谈到管理,把系统优化的技术用到企业管理
On the coverage technology and best practice of go code
Code Review Best Practices
傲視Kubernetes(一):Kubernetes簡介
From technology to management, the technology of system optimization is applied to enterprise management