当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- Code Review最佳实践
- Reflection on a case of bus card being stolen and swiped
- Don't treat exceptions as business logic, which you can't afford
- In the age of screen reading, we suffer from attention deficit syndrome
- Exclusive interview with Yue Caibo
- CI / CD of gitlab continuous integrated development environment
- bgfx编译教程
- 站外推广的计划需要考虑哪些呢?
- 从技术谈到管理,把系统优化的技术用到企业管理
- 想要忘记以前连接到Mac的WiFi网络,试试这个方法!
猜你喜欢

The JS solution cannot be executed after Ajax loads HTML

Mate 40系列发布 搭载华为运动健康服务带来健康数字生活

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

Bgfx compilation tutorial

awk实现类sql的join操作

Awk implements SQL like join operation

C enumerates the differences between permissions |, and |

On hiz buffer

Kubernetes (1): introduction to kubernetes

Opencv computer vision learning (10) -- image transform (Fourier transform, high pass filter, low pass filter)
随机推荐
A detailed explanation of microservice architecture
Technical debt is a lack of real understanding of business functions- daverupert.com
「混合云」会是云计算的下一个战场吗?
建议患者自杀,OpenAI警告:GPT-3用于医疗目的风险太高
In simple terms, the large front-end framework angular6 practical course (angular6 node.js 、keystonejs、
模型预测准确率高达94%!利用机器学习完美解决2000亿美元库存难题
Rech8.0 learning days 12 rh134
在pandas中使用pipe()提升代码可读性
Implementation of nginx version of microservice architecture
Key points of C language -- index article (let you fully understand indicators) | understand indicators from memory | complete analysis of indicators
大数据算法——布隆过滤器
websocket+probuf.原理篇
CPU瞒着内存竟干出这种事
On hiz buffer
awk实现类sql的join操作
快進來!花幾分鐘看一下 ReentrantReadWriteLock 的原理!
Exception calling 'downloadstring' with '1' arguments: 'operation timed out'
[original] the impact of arm platform memory and cache on the real-time performance of xenomai
HMS core push service helps e-commerce app to carry out refined operation
Vue: Axios uses this pointer