You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previously, the guestAgent in Rancher Desktop was picking up port mappings from iptables using the GetPorts function from Lima, as seen here. However, since the iptables scanning package was removed from the guestAgent, it no longer retrieves these port mappings.
An example of such a rule in iptables is as follows:
These rules are generated by the CNI (Container Network Interface) plugin for pod-to-pod communication. They are part of Kubernetes' networking and ensure that traffic on specific host ports (e.g., port 12345) is correctly routed to the appropriate pod, with the CNI plugin managing the handling of that traffic.
Given their role in routing traffic correctly within Kubernetes, it is important that these rules are not overlooked by the guestAgent.
To see what you should have seen, you can forward the port manually: kubectl port-forward pods/echo-server 12345:80 -n default and change the curl command to use the localhost IP curl 127.0.0.1:12345/param?query=demo
I created this issue to discuss the importance of these portMappings that are now ignored in guestAgent.
The text was updated successfully, but these errors were encountered:
Previously, the guestAgent in Rancher Desktop was picking up port mappings from iptables using the GetPorts function from Lima, as seen here. However, since the iptables scanning package was removed from the guestAgent, it no longer retrieves these port mappings.
An example of such a rule in iptables is as follows:
These rules are generated by the CNI (Container Network Interface) plugin for pod-to-pod communication. They are part of Kubernetes' networking and ensure that traffic on specific host ports (e.g., port 12345) is correctly routed to the appropriate pod, with the CNI plugin managing the handling of that traffic.
Given their role in routing traffic correctly within Kubernetes, it is important that these rules are not overlooked by the guestAgent.
TCP Repro Steps
echo-server.yaml
from https://gist.github.com/mikeseese/cca62f2dba7a453ebe172031a9490760kubectl apply -f echo-server.yaml
curl <hostIP>:12345/param?query=demo
kubectl port-forward pods/echo-server 12345:80 -n default
and change the curl command to use the localhost IPcurl 127.0.0.1:12345/param?query=demo
I created this issue to discuss the importance of these portMappings that are now ignored in guestAgent.
The text was updated successfully, but these errors were encountered: