question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using ExternalName service type with KubernetesDiscoveryClient

See original GitHub issue

Imagine 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:open
  • Created 4 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ryanjbaxtercommented, Jun 24, 2020
1reaction
ryanjbaxtercommented, Jun 24, 2020

That would be great!

I would start by looking at the class KubernetesDiscoveryClient.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found