txn2 / kubefwd

Bulk port forwarding Kubernetes services for local development.
https://imti.co/kubernetes-port-forwarding/
Apache License 2.0
3.78k stars 205 forks source link

Possible to forward non-service address that are only accessible inside k8s? #232

Closed shiyao-afterpay closed 2 years ago

shiyao-afterpay commented 2 years ago

My use case is, I have some Kafka broker address, which are whitelisted to be only accessible from within k8s.

I wonder if kubefwd has the feature of forwarding not only the normal k8s services, but also forwarding access to these external endpoints like through some configuration files?

cjimti commented 2 years ago

kubefwd can only port-forward to pods (containers). You would need to set up a pod that proxies your endpoints if you want to use kubefwd.