Class WorkloadSelector
WorkloadSelector specifies the criteria used to determine if the Gateway, Sidecar, EnvoyFilter, or ServiceEntry configuration can be applied to a proxy. The matching criteria includes the metadata associated with a proxy, workload instance info such as labels attached to the pod/VM, or any other info that the proxy provides to Istio during the initial handshake. If multiple conditions are specified, all conditions need to match in order for the workload instance to be selected. Currently, only label based selection mechanism is supported.
Namespace: Neon.Kube.Resources.Istio
Assembly: Neon.Kube.Resources.dll
Syntax
public class WorkloadSelector
Constructors
WorkloadSelector()
Initializes a new instance of the WorkloadSelector class.
Declaration
public WorkloadSelector()
Properties
Labels
Address associated with the network endpoint without the port. Domain names can be used if and only if the resolution is set to DNS, and must be fully-qualified without wildcards. Use the form unix:///absolute/path/to/socket for Unix domain socket endpoints.
Declaration
public Dictionary<string, string> Labels { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, string> |
MatchLabels
Declaration
public Dictionary<string, string> MatchLabels { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, string> |