当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- MongoDB下,启动服务时,出现“服务没有响应控制功能”解决方法
- How to deal with data leakage and deletion related to business life and death?
- 统计文本中字母的频次(不区分大小写)
- 深入web workers (上)
- Git代码提交操作,以及git push提示failed to push some refs'XXX'
- Vue: Axios uses this pointer
- Implementation of nginx version of microservice architecture
- 是时候结束 BERTology了
- Awk implements SQL like join operation
- 浅谈HiZ-buffer
猜你喜欢
随机推荐
If you want to forget the WiFi network you used to connect to your Mac, try this!
大数据算法——布隆过滤器
Mac新手必备小技巧
微服務 - 如何進行服務限流和熔斷
C language I blog assignment 03
Using thread communication to solve the problem of cache penetrating database avalanche
awk实现类sql的join操作
聊聊先享後付
华为HCIA笔记
Exploration and practice of growingio responsive programming
C language I blog assignment 03
如何应对事关业务生死的数据泄露和删改?
awk实现类sql的join操作
快速上手Git
统计文本中字母的频次(不区分大小写)
在pandas中使用pipe()提升代码可读性
动态规划——用二进制表示集合的状态压缩DP
On hiz buffer
想要忘记以前连接到Mac的WiFi网络,试试这个方法!
Deep into web workers (1)





