Kubernetes中iptables proxy mode代理模式有哪些特点?

提问者:帅平 问题分类:运维
Kubernetes中iptables proxy mode代理模式有哪些特点?
1 个回答
丢一地的真心、没人珍惜
丢一地的真心、没人珍惜
在iptables proxy mode代理模式下:
1、kube-proxy 监听 kubernetes master 以获得添加和移除 Service / Endpoint 的事件
2、kube-proxy 在其所在的节点(每个节点都有 kube-proxy)上为每一个 Service 安装 iptable 规则
2.1、iptables 将发送到 Service 的 ClusterIP / Port 的请求重定向到 Service 的后端 Pod 上
2.2对于 Service 中的每一个 Endpoint,kube-proxy 安装一个 iptable 规则
默认情况下,kube-proxy 随机选择一个 Service 的后端 Pod

最后再画个图给大家展示下:
发布于:2年前 (2022-10-27) IP属地:未知
我来回答