Using ExternalName service type with KubernetesDiscoveryClient
See original GitHub issueImagine you have a setup when services running in K8S need to access services running outside.
I want to create an ExternalName service:
apiVersion: v1
kind: Service
metadata:
name: my-service
namespace: prod
spec:
type: ExternalName
externalName: my.service.example.com
After that I should be able to resolve service call http://my-service/doCall into http://my.service.example.com/doCall
So instead of relying only on endpoints in KubernetesDiscoveryClient, check if service type is ExternalName, then return single service instance with hostname: my.service.example.com
.
Does it make sense to contribute this enhancement?
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
How to use Kubernetes ExternalName Service type to migrate ...
How to use Kubernetes ExternalName Service type to migrate your applications to different namespaces with zero downtime.
Read more >Integrating External Services | Developer Guide
Using an external domain name service tells the system that the DNS name in the externalName field ( example.domain.name in the previous example)...
Read more >Containers – Piotr's TechBlog - WordPress.com
In this article I'm going to show you how to deploy your applications on OpenShift (Minishift), connect them with other services exposed there...
Read more >ExternalName - Kubernetes Networking
apiVersion: v1 kind: Service metadata: name: my-database-svc namespace: prod spec: type: ExternalName externalName: my.database.example.com.
Read more >Spring Cloud Kubernetes
Kubernetes native service discovery; 5. ... This reference guide covers how to use Spring Cloud Kubernetes. ... Name, Type, Default, Description ...
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
@muralidharan-rade there is already a PR open here https://github.com/spring-cloud/spring-cloud-kubernetes/pull/512
That would be great!
I would start by looking at the class
KubernetesDiscoveryClient
.