当前位置:网站首页>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内部的这个应用。
边栏推荐
- Popularize the basics of IP routing
- Machine learning support vector machine SVM
- Research Report on the overall scale, major manufacturers, major regions, products and application segmentation of rotary tablet presses in the global market in 2022
- Microservice framework - frequently asked questions
- 2.6 formula calculation
- CesiumJS 2022^ 源码解读[7] - 3DTiles 的请求、加载处理流程解析
- 阻塞非阻塞和同步异步的区分 参考一些书籍
- 【c】 Digital bomb
- Phpexcel import export
- Strange way of expressing integers (expanding Chinese remainder theorem)
猜你喜欢
IP address is such an important knowledge that it's useless to listen to a younger student?
In 2021, the global revenue of thick film resistors was about $1537.3 million, and it is expected to reach $2118.7 million in 2028
The 15 year old interviewer will teach you four unique skills that you must pass the interview
Line segment tree blue book explanation + classic example acwing 1275 Maximum number
Reinforcement learning - learning notes 1 | basic concepts
Test changes in Devops mode -- learning and thinking
[Yu Yue education] basic reference materials of manufacturing technology of Shanghai Jiaotong University
Interval product of zhinai sauce (prefix product + inverse element)
Qtablewidget control of QT
2.1 use of variables
随机推荐
18、 MySQL -- index
How can the outside world get values when using nodejs to link MySQL
4. Data splitting of Flink real-time project
Line segment tree blue book explanation + classic example acwing 1275 Maximum number
2022 low voltage electrician examination and low voltage electrician simulation examination question bank
Oak-d raspberry pie cloud project [with detailed code]
It is discussed that the success of Vit lies not in attention. Shiftvit uses the precision of swing transformer to outperform the speed of RESNET
Gauss elimination solves linear equations (floating-point Gauss elimination template)
Shortest path problem of graph theory (acwing template)
jvm jni 及 pvm pybind11 大批量数据传输及优化
Q&A:Transformer, Bert, ELMO, GPT, VIT
The simplicity of laravel
Test access criteria
Global and Chinese market of full authority digital engine control (FADEC) 2022-2028: Research Report on technology, participants, trends, market size and share
Cannot load driver class: com. mysql. cj. jdbc. Driver
Task of gradle learning
44. Concurrent programming theory
强化学习-学习笔记1 | 基础概念
2.5 conversion of different data types (2)
2.2 integer