virtual_destination.proto

Package : networking.gloo.solo.io

Top

virtual_destination.proto

Table of Contents

VirtualDestinationSpec

VirtualDestinations define groupings of backing destinations (for network traffic).

Field Type Label Description
hosts []string repeated Optional: The set of custom hosts for which this virtual destination will serve traffic.
services []common.gloo.solo.io.ObjectSelector repeated Selectors for the backing K8s services that comprise this VirtualDestination. A service will be selected if it matches any of the given selectors. Currently only one K8s Service can be selected per cluster. If more than one service is selected within a cluster the VirtualDestination will be invalid and will not be translated.
externalServices []common.gloo.solo.io.ObjectSelector repeated Selectors for the backing External services that comprise this VirtualDestination. An external service will be selected if it matches any of the given selectors. Multiple External Services can be selected.
ports []networking.gloo.solo.io.VirtualDestinationSpec.PortMapping repeated Required: The ports on which the VirtualDestination will serve traffic. Must have at least one port.
clientMode common.gloo.solo.io.ClientMode Optional: Client mode determines how the VirtualDestination will be translated. If nil, the mode is inherited from the WorkspaceSettings defined by the admin.

VirtualDestinationSpec.PortMapping

PortMapping establishes a new port that will be exposed on a VirtualDestination.

Field Type Label Description
number uint32 The port number. Must be a valid, non-negative integer port number.
protocol string The protocol used in communication with this destination MUST be one of the following: HTTP, HTTPS, GRPC, HTTP2, MONGO, TCP, TLS.
targetPort common.gloo.solo.io.PortSelector (optional): The port number or name used to match the corresponding port on the VirtualDestination's backing Services and ExternalServices. All of the backing services for this VirtualDestination must contain this port, matching by name or number. If unspecified, will default to the value of the port number field above.

VirtualDestinationStatus

reflects the status of the VirtualDestination

Field Type Label Description
global common.gloo.solo.io.GenericGlobalStatus
workspaces []networking.gloo.solo.io.VirtualDestinationStatus.WorkspacesEntry repeated The status of the resource in each workspace that it exists in.
appliedDestinationPolicies []networking.gloo.solo.io.VirtualDestinationStatus.AppliedDestinationPoliciesEntry repeated Map of policy GVK to policy references for all policies applied on this resource.
selectedBackingServices []common.gloo.solo.io.DestinationReference repeated Destinations that back this virtual destination
ownerWorkspace common.gloo.solo.io.OwnerWorkspace Name of Workspace that owns VirtualDestination

VirtualDestinationStatus.AppliedDestinationPoliciesEntry

Field Type Label Description
key string
value common.gloo.solo.io.AppliedDestinationPortPolicies

VirtualDestinationStatus.WorkspacesEntry

Field Type Label Description
key string
value common.gloo.solo.io.WorkspaceStatus