当前位置:网站首页>Kubernetes 通信异常网络故障 解决思路
Kubernetes 通信异常网络故障 解决思路
2022-07-03 20:24:00 【富士康质检员张全蛋】
在k8s当中最重要的就是网络,如果网络不可用,那么集群就相当于报废状态,
网络故障原因
Kubernetes中的网络是非常重要的,整个k8s集群的通通信需要依赖网络插件,如calico、flannel、canel等,通信都是通过网络插件实现的,kubernetes之上的网通信过程最常见的故障如下∶(calico可以为pod分配ip地址,calico相对于flannel来说还可以配置网络策略)
通信主要有如下几种∶
- Pod自身网络故障
- Pod和Pod通信故障(同一个节点上面pod通信和跨节点的pod通信)
Pod和物理节点通信故障(pod访问不通物理节点IP或者物理节点去ping pod的ip是ping不通的)
- 容器间的通信
同一个pod内的多个容器间的通信,lo,通过本地的回环网卡lo进行通信
- pod通信
从一个pod lp 到另一个pod Ip
- Pod与service 外部通信通信
pod ip到cluster ip
- 外部通信
Service与集群外部客户端的通信,如果使用service实现4层负载均衡,想在集群外访问service关联的pod,需要将service变为nodeport类型,这样才可以在集群外部通过主机IP和宿主机暴露的端口去访问service内部的这个应用。
边栏推荐
- 浅议.NET遗留应用改造
- JVM JNI and PVM pybind11 mass data transmission and optimization
- Producer consumer mode (multithreading, use of shared resources)
- Global and Chinese market of micro positioning technology 2022-2028: Research Report on technology, participants, trends, market size and share
- Line segment tree blue book explanation + classic example acwing 1275 Maximum number
- Oak-d raspberry pie cloud project [with detailed code]
- Derivation of decision tree theory
- In 2021, the global foam protection packaging revenue was about $5286.7 million, and it is expected to reach $6615 million in 2028
- PR notes:
- Cannot load driver class: com. mysql. cj. jdbc. Driver
猜你喜欢
Viewing Chinese science and technology from the Winter Olympics (II): when snowmaking breakthrough is in progress
Sightseeing - statistics of the number of shortest paths + state transfer + secondary small paths
MPLS configuration
Shortest path problem of graph theory (acwing template)
Example of peanut shell inner net penetration
Sparse matrix (triple) creation, transpose, traversal, addition, subtraction, multiplication. C implementation
thrift go
19、 MySQL -- SQL statements and queries
44. Concurrent programming theory
The global industrial design revenue in 2021 was about $44360 million, and it is expected to reach $62720 million in 2028. From 2022 to 2028, the CAGR was 5.5%
随机推荐
Gym welcomes the first complete environmental document, which makes it easier to get started with intensive learning!
Qt6 QML Book/Qt Quick 3D/基础知识
2.1 use of variables
Global and Chinese market of liquid antifreeze 2022-2028: Research Report on technology, participants, trends, market size and share
Global and Chinese markets of lithium chloride 2022-2028: Research Report on technology, participants, trends, market size and share
FAQs for datawhale learning!
PR notes:
Wargames study notes -- Leviathan
Rad+xray vulnerability scanning tool
Global and Chinese market of cyanuric acid 2022-2028: Research Report on technology, participants, trends, market size and share
【c】 Digital bomb
Phpexcel import export
Do you really know how old you are?
Popularize the basics of IP routing
11-grom-v2-04-advanced query
Sparse matrix (triple) creation, transpose, traversal, addition, subtraction, multiplication. C implementation
Global and Chinese markets for medical temperature sensors 2022-2028: Research Report on technology, participants, trends, market size and share
Preliminary practice of niuke.com (11)
Introduction to golang garbage collection
Microsoft: the 12th generation core processor needs to be upgraded to win11 to give full play to its maximum performance