Create a Discovery Controller that adds service/instance information in config maps
See original GitHub issueTo eliminate the need for the application to be able to access the K8S API server we should provide a ServiceDiscovery
implementation that does not rely on the use of the API.
We could do this by just leveraging the platform service discovery and then fetch the port via a lookup.
Another option would be to implement a service discovery server which exclusively talks to the k8s api server and have clients fetch service information from this server (kind of like a eureka server).
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Spring Cloud Kubernetes
Discovery Client implementation that resolves service names to Kubernetes ... Another option is to create a different config map per profile and spring...
Read more >Service Discovery, ConfigMap & Ingress Controller
So, here I am going to explain you in detail about the Service Discovery using DNS as of Kubernetes 1.3. DNS is a...
Read more >spring-cloud-kubernetes/readme.md at master - GitHub
This project provides integration with ConfigMap to make config maps accessible by spring boot. The ConfigMap PropertySource when enabled will lookup Kubernetes ...
Read more >Configure a Pod to Use a ConfigMap - Kubernetes
Create ConfigMaps from files · kubectl create configmap game-config-2 --from-file=configure-pod-container/configmap/game. · kubectl describe ...
Read more >Service Discovery in a Microservices Architecture - NGINX
In order to make a request, your code needs to know the network location (IP address and port) of a service instance. In...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I agree, but I would first explore the ecosystem for existing projects. I would also expect that implementing an Informer-driven ServiceRegistry would be simpler/lighter in Go.
https://github.com/scratches/spring-controller (native, config maps) and https://github.com/Haybu/spring-cloud-k8s-eureka-controller (discovery) can be useful proofs of concept to take from.