라우팅 및 전달 방법 구현 문제

라우팅 및 전달 방법 구현 문제

Minikube와 1 Pod를 사용하여 애플리케이션을 개발했습니다. 여기서 사용하는 것은 IPVS 모드입니다. Masq 전달 방법을 사용할 때 애플리케이션이 작동합니다. 하지만 경로 전달 방법에서는 작동하지 않습니다. 라우팅 및 포워딩을 사용할 때 구성해야 할 사항이 있나요?

여기에 Masq의 IPVS 목록과 경로 전달 방법을 첨부했습니다.

  # ipvsadm  -Ln
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  10.96.0.1:443 wlc
  -> 147.214.68.51:8443           Masq    1      2          0
TCP  10.96.0.10:53 wlc
  -> 172.17.0.2:53                Masq    1      0          0
  -> 172.17.0.3:53                Masq    1      0          0
TCP  10.108.116.175:5000 wlc
  -> 172.17.0.4:5000              Masq    1      0          0
TCP  127.0.0.1:32673 wlc
  -> 172.17.0.4:5000              Masq    1      0          0
TCP  147.214.68.51:32673 wlc
  -> 172.17.0.4:5000              Masq    1      0          0
TCP  172.17.0.1:32673 wlc
  -> 172.17.0.4:5000              Masq    1      0          0
TCP  10.96.0.10:9153 wlc
  -> 172.17.0.2:9153              Masq    1      0          0
  -> 172.17.0.3:9153              Masq    1      0          0
UDP  10.96.0.10:53 wlc
  -> 172.17.0.2:53                Masq    1      0          0
  -> 172.17.0.3:53                Masq    1      0          0



  # ipvsadm -Ln
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  10.96.0.1:443 wlc
  -> 147.214.68.51:8443           Route   1      0          0
TCP  10.96.0.10:53 wlc
  -> 172.17.0.2:53                Route   1      0          0
  -> 172.17.0.3:53                Route   1      0          0
TCP  10.108.116.175:5000 wlc
  -> 172.17.0.4:5000              Route   1      0          0
TCP  127.0.0.1:32673 wlc
  -> 172.17.0.4:5000              Route   1      0          0
TCP  147.214.68.51:32673 wlc
  -> 172.17.0.4:5000              Route   1      3          0
TCP  172.17.0.1:32673 wlc
  -> 172.17.0.4:5000              Route   1      0          0
TCP  10.96.0.10:9153 wlc
  -> 172.17.0.2:9153              Route   1      0          0
  -> 172.17.0.3:9153              Route   1      0          0
UDP  10.96.0.10:53 wlc
  -> 172.17.0.2:53                Route   1      0          0
  -> 172.17.0.3:53                Route   1      0          0

관련 정보