gate icon indicating copy to clipboard operation
gate copied to clipboard

feat: Kubernetes service discovery

Open clrxbl opened this issue 2 years ago • 4 comments

Surprising to see that this has not been implemented or mentioned anywhere yet (unless I'm blind) considering this project is all about being cloud-native.

https://github.com/itzg/mc-router#kubernetes-usage is a great example for forced hosts, but it'd be nice to expand this to Pod support aswell.

clrxbl avatar Mar 24 '23 16:03 clrxbl

Kubernetes's KRM can be a good configuration source for the Gate Lite mode. Currently, Gate Lite only sources its configuration from the local configuration file.

To add this feature we can make use of the existing live config reload feature and a k8s adapter to update Gate config file to sync with Kubernetes resources.

I'll consider this feature request when I see more demand for it.

robinbraemer avatar Apr 06 '23 11:04 robinbraemer

To anyone who wants to implement this: I've just built something similar for one of my projects:

everbuild-org/prismcloud#images/ingress-gate/gate/plugin/service_discovery

Bloeckchengrafik avatar May 07 '24 13:05 Bloeckchengrafik

@Bloeckchengrafik you should post your tool in https://discord.com/channels/633708750032863232/1042460518595690526 and add it to https://github.com/minekube/awesome

robinbraemer avatar May 07 '24 17:05 robinbraemer

Thanks a lot for the suggestion! I'll do that when it becomes somewhat production ready!

Bloeckchengrafik avatar May 07 '24 18:05 Bloeckchengrafik