Package :



Table of Contents


A ServiceDependency specifies explicit dependencies between traffic sources and destinations in a service graph. Depending on the underlying service mesh, explicitly describing dependencies can improve the performance of the data plane by pruning away any unneeded networking configuration from the relevant proxies.
The complete set of service dependencies for a given traffic source is the aggregation of all unique Destinations selected by any applicable ServiceDependencies. If a traffic source has no applied ServiceDependencies, its service dependency configuration defaults to the behavior of the underlying service mesh.
Note that in order to block communication between sources and destinations not explicitly declared in a ServiceDependency, additional configuration on the underlying service mesh may be required. For instance, Istio must be configured with outboundTrafficPolicy.Mode set to REGISTRY_ONLY (see here) to enforce this behavior.

Field Type Label Description
sourceSelectors [] repeated Select the traffic sources (i.e. Workloads) for this network ServiceDependency. If omitted, selects all Workloads.
destinationSelectors [] repeated Select the traffic targets (i.e. Destination) for this network ServiceDependency. If omitted, selects all Destinations.


Field Type Label Description
observedGeneration int64 The most recent generation observed in the the ServiceDependency metadata. If the observedGeneration does not match metadata.generation, Gloo Mesh has not processed the most recent version of this resource.
state The state of the overall resource, will only show accepted if it has been successfully applied to all exported to Meshes.
workloads [] repeated The status of the ServiceDependency for each selected Workload. A ServiceDependency may have different statuses for each Workload it applies to.
errors []string repeated Any errors found while processing this generation of the resource.


Field Type Label Description
key string