Skip to content

Commit

Permalink
Use unqualified name for service discovery url
Browse files Browse the repository at this point in the history
  • Loading branch information
yahya-hrln committed Aug 9, 2023
1 parent 38725e9 commit 6f131f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/robusta/utils/service_discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ def find_service_url(label_selector):
name = svc.metadata.name
namespace = svc.metadata.namespace
port = svc.spec.ports[0].port
url = f"http://{name}.{namespace}.svc.cluster.local:{port}"
url = f"http://{name}.{namespace}:{port}"
logging.info(f"discovered service with label-selector: `{label_selector}` at url: `{url}`")
return url

0 comments on commit 6f131f7

Please sign in to comment.