Skip to content

Commit

Permalink
Modify ip information
Browse files Browse the repository at this point in the history
Modify ip information
  • Loading branch information
peacewong committed Dec 1, 2020
1 parent 22fb8bd commit 035fb1b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/zh_CN/ch6/k8s.MD
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ Linkis on kubernetes
静态路由+iptables/netfilter地址伪装
executor到pod,svc 网络通
executor添加静态路由表
route add -net 10.83.0.0 netmask 255.255.0.0 gw 10.20.20.204
route add -net 172.27.0.0 netmask 255.255.0.0 gw 10.20.20.204
route add -net 127.0.0.1 netmask 255.255.0.0 gw 127.0.0.1
route add -net 127.0.0.1 netmask 255.255.0.0 gw 127.0.0.1
k8s node节点上做ip masque
iptables -t nat -A POSTROUTING -s 10.20.20.0 /24 -d 10.83.0.0/16 -j MASQUERADE
iptables -t nat -A POSTROUTING -s 10.20.20.0 /24 -d 172.27.0.0 /12 -j MASQUERADE
iptables -t nat -A POSTROUTING -s 127.0.0.1/24 -d 127.0.0.1/16 -j MASQUERADE
iptables -t nat -A POSTROUTING -s 127.0.0.1/24 -d 127.0.0.1/12 -j MASQUERADE

0 comments on commit 035fb1b

Please sign in to comment.