wavezhang / k8s-ipvs-toa

Let you get real client IP in k8s pod using toa. Only works if your kubeproxy is using ipvs mode.
GNU General Public License v3.0
5 stars 1 forks source link

Patch failure #2

Open K-free-N opened 2 years ago

K-free-N commented 2 years ago

I think "patch -p1 < ../k8s-ipvs-toa/k8s-ipvs.patch" is error, After the git clone,Go to the kernel directory Whether it should be implemented "patch -p1 < ../k8s-ipvs-toa/ipvs-toa.patch"?

K-free-N commented 2 years ago

Why can't I see the real IP address after compiling

K-free-N commented 2 years ago

@wavezhang Please help to answer it

wavezhang commented 2 years ago

how do you install and test it?did install toa mod, does new ip_vs mod updated correctly ?

K-free-N commented 2 years ago

Hi: Sorry I am not sure if my new kernel has loaded the IP_vs module, but I saw the source file related to IP_vs in the kernel directory. My kernel version is 3.10.0 and I wonder if I can use this module ,Excuse me, are you Chinese? If you are, we can communicate in Chinese

@.***

From: wavezhang Date: 2022-07-12 11:20 To: wavezhang/k8s-ipvs-toa CC: K-free; State change Subject: Re: [wavezhang/k8s-ipvs-toa] Patch failure (Issue #2) how do you install and test it?did install toa mod, does new ip_vs mod updated correctly ? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you modified the open/close state.Message ID: @.***>

K-free-N commented 2 years ago

Hi: When I use curl to access the IP address of Pod on Node, the IP address in the background log is still the IP address of Calico's Tunl0 network card

@.***

From: wavezhang Date: 2022-07-12 11:20 To: wavezhang/k8s-ipvs-toa CC: K-free; State change Subject: Re: [wavezhang/k8s-ipvs-toa] Patch failure (Issue #2) how do you install and test it?did install toa mod, does new ip_vs mod updated correctly ? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you modified the open/close state.Message ID: @.***>

K-free-N commented 2 years ago

@wavezhang Hi, i need your help,thanks

wavezhang commented 2 years ago

server need load toa kernel module https://github.com/Huawei/TCP_option_address

K-free-N commented 2 years ago

I use "lsmod | grep toa" is the result toa

wavezhang commented 2 years ago

try client from other hosts different from server?

K-free-N commented 2 years ago

No, Pod Nginx logs still record calico interface addresses