knight42 / krelay

A better alternative to `kubectl port-forward` that can forward TCP or UDP traffic to IP/Host which is accessible inside the cluster.
MIT License
248 stars 15 forks source link

Support --address on a per-target basis inside of -f targets file #54

Open freb opened 2 months ago

freb commented 2 months ago

This might be an uncommon use case, but I create dummy interfaces on the system with kubectl using the IP addresses of the services inside the cluster. I then use --address to forward the service ports using the dummy IP addresses. This allows me to appear to be accessing the services on their correct ip/port.

The current version only supports a global --address option which means I have to call krelay multiple times to add all of the ports, running multiple instances of krelay.