txn2 / kubefwd

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

Option to display created Local Domains #250

Closed MarkCupitt closed 1 year ago

MarkCupitt commented 1 year ago

This is a wonderful tool, was amazed to find it .. solved a major problem for our dev team, thank you

If I was conversant in GO I would submit a pull request, but sadly I am not, so I have to ask with cap in hand

Whilst the created domains are in \etc\hosts and verbose mode lists a lot of detail it would be super nice to have them output based on a command line switch in a nice readable tabular format, for quick reference by devs

Just thought we would throw it out there, thanks again

cjimti commented 1 year ago

@MarkCupitt I'm glad you find it useful! All the domains follow Kubernetes' internal DNS structure and should be easily inferred based on the services you select.

<service>
<service>.<namespace>
<service>.<namespace>.svc
<service>.<namespace>.svc.cluster.local
<service>.<namespace>.svc.<context>