Communicate with other workloads ΒΆ

This guide shows you how to communicate with other workloads inside the same environment or cluster via service discovery.

Prerequisites ΒΆ

Identify the target address ΒΆ

To identity the address of the workload we are communicating with, we need to know its name and what namespace its running in.

Target exists in the same namespace ΒΆ

If the workload you are calling is in the same namespace, you can reach it by calling its name directly using HTTP like so:

Plaintext

Target exists in another namespace ΒΆ

If the workload is running in another team's namespace, you need to specify the namespace as well:

Plaintext

Use full hostname when using webproxy on-premises

If your workload has webproxy enabled, you must use the full hostname for all service discovery calls:

Plaintext

This is to ensure that your workload does not attempt to perform these in-cluster calls through the proxy, as the environment variable NO_PROXY includes *.local.

Call the address ΒΆ

Call the workload through its internal address using HTTP from your own workload:

http