Access port forwarded via UI from within k8s pod #3361
Replies: 3 comments 7 replies
-
There is some background that I need to explain before I can answer your question. Container-based technologies (at least, the ones provided by Rancher Desktop) require a Linux kernel to work. Rancher Desktop can run on Windows and macOS because it effectively wraps a VM that runs Linux. So when you're running The purpose of the UI port forwarding feature is to let the user access ports that are open in the Linux VM from the host machine. This only goes one way, i.e. it's not possible to use the UI port forwarding feature to expose ports that are open on the host machine to the Linux VM, which is what you are trying to do. I was going to say that this isn't something that k8s supports, but that would have been wrong. In the PodSpec object there is the However, going back to how Rancher Desktop runs everything in a Linux VM... for this to work in Rancher Desktop we would have had to introduce something that would pass traffic from the Linux VM to things listening on the host network. I'm not sure if this should work. @Nino-K do you know? |
Beta Was this translation helpful? Give feedback.
-
I´ve testet the rule, but the behavior didn´t change. |
Beta Was this translation helpful? Give feedback.
-
Closing this discussion as the problem appears to be resolved. |
Beta Was this translation helpful? Give feedback.
-
I'm making this discussion to continue a thread from #3326 that is unrelated to the original topic of that issue. Relevant posts:
@TheGreatBey0nd said:
@adamkpickering said:
@TheGreatBey0nd said:
Beta Was this translation helpful? Give feedback.
All reactions