Communicate with other workloadsΒΆ
This guide shows you how to communicate with other workloads inside the same environment or cluster via service discovery.
PrerequisitesΒΆ
- Your workload has configured policies for outbound traffic to the target workload
- The target workload has configured policies for inbound traffic from your workload
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:
Target exists in another namespaceΒΆ
If the workload is running in another team's namespace, you need to specify the namespace as well:
Call the addressΒΆ
Call the workload through its internal address using HTTP from your own workload: