当前位置:网站首页>kube-proxy & Service & Endpoint
kube-proxy & Service & Endpoint
2022-07-19 15:04:00 【Drunken Xiaobai】
kube-proxy & Service & Endpoint
kube-proxy It also runs on every node . It is the realization of Kubernetes Service Important components of the mechanism . No one's surprise ,kube-proxy Also a “ controller ”. It also comes from API Server monitor Service and Endpoint object The change of , And according to Endpoint Object information settings Service To the back end Pod The routing , Maintain network rules , perform TCP、UDP and SCTP Stream forwarding .
Pictured Shown , label app=example Of Pod This is all about it Service Backend Pod, their Pod IP Will be Endpoint The controller is updated to in real time Endpoint In the object . this Serivce Assigned ClusterIP by 192.168.232.109,nodePort by 30004.Pod Of 8080 Port maps to Service Of 80 port . in other words , Within the cluster through 192.168.232.109:80 To access this Service Backend Pod 8080 Port services ; Hosts outside the cluster can use nodeIP:30004 Come and ask Service.

give an example
kd get svc,ep,pod --show-labels -owide
Traffic forwarding
kube-proxy There are two traffic forwarding modes , Namely iptables Patterns and IPVS(IP Virtual Server) Pattern ( You can use the parameter –proxy-mode To specify the ). The default is iptables Pattern , This mode is implemented through the on each node iptables Rules to achieve .
iptables -t nat -S
With Service An increase in quantity ,iptables Pattern matching due to linear search 、 Full update and so on , Its performance will decrease significantly . from Kubernetes Of 1.8 Version start ,kube-proxy Introduced IPVS Pattern ,IPVS And iptables Also based on netfilter, But it uses a hash table and runs in kernel mode , When Service When the quantity reaches a certain scale , The query speed advantage of hash table will appear , So as to improve Service Service performance .
ipvsadm --list
Flannel,Calico and Cilium excellent vacancy 
边栏推荐
- ORA-00054
- SQL wrong questions set of Niuke brush questions
- 009 execution sequence of SQL statement of interview questions
- Comparaison de deux types de machines virtuelles
- csrf防护机制
- Top domestic experts gathered in Guangzhou to discuss the safety application of health care data
- Icml2022 | geometric multimodal comparative representation learning
- 现在网上办理基金开户,身份证信息安全吗?
- C speech Young's matrix · left-hand string · judge whether the string is rotated
- MySQL CPU usage is soaring. How to locate who is occupying it
猜你喜欢

Leetcode 1296. Divide the array into a set of consecutive numbers (solved)

国内顶尖专家集聚广州,探讨健康医疗数据安全应用

Zabbix实现对Redis的监控
![[mqtt from getting started to improving series | 06] subscribe subscription workflow of mqtt3.1.1](/img/bf/9f8d8b2a73406970941fce33d3e754.png)
[mqtt from getting started to improving series | 06] subscribe subscription workflow of mqtt3.1.1

模块1 作业

MySQL view

数据填报、报表展示哪家强?亿信ABI给你答案

An unforgettable day in 2022 summer camp
![2021.07.13 [station B] collapsed like this](/img/af/d7d6ae059b4bc2d76c6ea0edb64c82.png)
2021.07.13 [station B] collapsed like this
![[microservice] microservice learning note 3: use feign to replace resttemplate to complete remote call](/img/e6/b2f328a8e5ec3becdb9f934d041182.png)
[microservice] microservice learning note 3: use feign to replace resttemplate to complete remote call
随机推荐
Can [C language - user defined type] be adjusted like this?
csrf防护机制
天勤第九章课后习题代码
Oracle - 锁
模块1 作业
Tips for using setup
状态机练习
session管理
Istio XDS配置生成实现
Icml2022 | géométrie multimodale Contrastive Representation Learning
SBOM (software bill of materials)
UCAS. Deep learning Final examination questions and brief thinking analysis
OSError: sndfile library not found 解决方案
MySQL CPU使用率飙升,如何定位是被谁占用了
Authing practice | unified management solution for manufacturing identity authentication
抽象類與派生類
Unity uses a map to control the transparency of the material's main map
Classes abstraites et dérivées
实习是步入社会的一道坎
Code Runner for VS Code,下载量突破 4000 万!支持超过50种语言
