11. Red Hat
仕組み --dest-node の場合
11
Kubernetes Node 1
ターゲットPod
Kubernetes Node 2
Process
eth0
iptable@pod Bridge eth0 eth0
mirror IF
(vxlan)
mirror IF
(vxlan)
kokotap
sender pod
kokotap
receiver pod
ノードでパケットキャプチャ
できるようならこちらがお
手軽
tc mirred
12. Red Hat
仕組み --dest-ip の場合
12
Kubernetes Node 1
ターゲットPod
任意のサーバー
Process
eth0
iptable@pod Bridge eth0 eth0
mirror IF
(vxlan)
kokotap
sender pod 手動で作成
mirror IF
(vxlan)
tc mirred
13. Red Hat
vxlanのデフォルトポートが使用中だと --vxlan-port オプションが必要(特に OpenShiftの場合)
受信側でiptablesの設定が必要な場合がある
例
sudo iptables -A OPENSHIFT-FIREWALL-ALLOW -p udp -m udp --dport 4889 -m comment
--comment "VXLAN incoming" -j ACCEPT
AWS上だとSecurity Groupsの設定が必要になるのでやや面倒
注意点
13