docker - in k8s+flannel, how to access pod from outside host using nodeport -


i confused when tested following scenario:

host (non k8s node) accesses service using node port. due entry:

postrouting -m comment --comment "kubernetes service traffic requiring snat" -m mark --mark 0x4000/0x4000 -j masquerade 

the source ip address in ip packet sent changed ip of docker, 1 of service pod got packet. in case, pod not know real client a. how docker route packet replied pod host a?


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

Python Tornado package error when running server -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -