public static final class SidecarOuterClass.IstioEgressListener.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.IstioEgressListener.Builder> implements SidecarOuterClass.IstioEgressListenerOrBuilder
`IstioEgressListener` specifies the properties of an outbound traffic listener on the sidecar proxy attached to a workload instance.Protobuf type
istio.networking.v1alpha3.IstioEgressListener| 限定符和类型 | 方法和说明 |
|---|---|
SidecarOuterClass.IstioEgressListener.Builder |
addAllHosts(Iterable<String> values)
One or more service hosts exposed by the listener
in `namespace/dnsName` format.
|
SidecarOuterClass.IstioEgressListener.Builder |
addHosts(String value)
One or more service hosts exposed by the listener
in `namespace/dnsName` format.
|
SidecarOuterClass.IstioEgressListener.Builder |
addHostsBytes(com.google.protobuf.ByteString value)
One or more service hosts exposed by the listener
in `namespace/dnsName` format.
|
SidecarOuterClass.IstioEgressListener.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SidecarOuterClass.IstioEgressListener |
build() |
SidecarOuterClass.IstioEgressListener |
buildPartial() |
SidecarOuterClass.IstioEgressListener.Builder |
clear() |
SidecarOuterClass.IstioEgressListener.Builder |
clearBind()
The IP or the Unix domain socket to which the listener should be bound
to.
|
SidecarOuterClass.IstioEgressListener.Builder |
clearCaptureMode()
When the bind address is an IP, the captureMode option dictates
how traffic to the listener is expected to be captured (or not).
|
SidecarOuterClass.IstioEgressListener.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
SidecarOuterClass.IstioEgressListener.Builder |
clearHosts()
One or more service hosts exposed by the listener
in `namespace/dnsName` format.
|
SidecarOuterClass.IstioEgressListener.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
SidecarOuterClass.IstioEgressListener.Builder |
clearPort()
The port associated with the listener.
|
SidecarOuterClass.IstioEgressListener.Builder |
clone() |
String |
getBind()
The IP or the Unix domain socket to which the listener should be bound
to.
|
com.google.protobuf.ByteString |
getBindBytes()
The IP or the Unix domain socket to which the listener should be bound
to.
|
SidecarOuterClass.CaptureMode |
getCaptureMode()
When the bind address is an IP, the captureMode option dictates
how traffic to the listener is expected to be captured (or not).
|
int |
getCaptureModeValue()
When the bind address is an IP, the captureMode option dictates
how traffic to the listener is expected to be captured (or not).
|
SidecarOuterClass.IstioEgressListener |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getHosts(int index)
One or more service hosts exposed by the listener
in `namespace/dnsName` format.
|
com.google.protobuf.ByteString |
getHostsBytes(int index)
One or more service hosts exposed by the listener
in `namespace/dnsName` format.
|
int |
getHostsCount()
One or more service hosts exposed by the listener
in `namespace/dnsName` format.
|
com.google.protobuf.ProtocolStringList |
getHostsList()
One or more service hosts exposed by the listener
in `namespace/dnsName` format.
|
GatewayOuterClass.Port |
getPort()
The port associated with the listener.
|
GatewayOuterClass.Port.Builder |
getPortBuilder()
The port associated with the listener.
|
GatewayOuterClass.PortOrBuilder |
getPortOrBuilder()
The port associated with the listener.
|
boolean |
hasPort()
The port associated with the listener.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
SidecarOuterClass.IstioEgressListener.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SidecarOuterClass.IstioEgressListener.Builder |
mergeFrom(com.google.protobuf.Message other) |
SidecarOuterClass.IstioEgressListener.Builder |
mergeFrom(SidecarOuterClass.IstioEgressListener other) |
SidecarOuterClass.IstioEgressListener.Builder |
mergePort(GatewayOuterClass.Port value)
The port associated with the listener.
|
SidecarOuterClass.IstioEgressListener.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
SidecarOuterClass.IstioEgressListener.Builder |
setBind(String value)
The IP or the Unix domain socket to which the listener should be bound
to.
|
SidecarOuterClass.IstioEgressListener.Builder |
setBindBytes(com.google.protobuf.ByteString value)
The IP or the Unix domain socket to which the listener should be bound
to.
|
SidecarOuterClass.IstioEgressListener.Builder |
setCaptureMode(SidecarOuterClass.CaptureMode value)
When the bind address is an IP, the captureMode option dictates
how traffic to the listener is expected to be captured (or not).
|
SidecarOuterClass.IstioEgressListener.Builder |
setCaptureModeValue(int value)
When the bind address is an IP, the captureMode option dictates
how traffic to the listener is expected to be captured (or not).
|
SidecarOuterClass.IstioEgressListener.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SidecarOuterClass.IstioEgressListener.Builder |
setHosts(int index,
String value)
One or more service hosts exposed by the listener
in `namespace/dnsName` format.
|
SidecarOuterClass.IstioEgressListener.Builder |
setPort(GatewayOuterClass.Port.Builder builderForValue)
The port associated with the listener.
|
SidecarOuterClass.IstioEgressListener.Builder |
setPort(GatewayOuterClass.Port value)
The port associated with the listener.
|
SidecarOuterClass.IstioEgressListener.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
SidecarOuterClass.IstioEgressListener.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.IstioEgressListener.Builder>public SidecarOuterClass.IstioEgressListener.Builder clear()
clear 在接口中 com.google.protobuf.Message.Builderclear 在接口中 com.google.protobuf.MessageLite.Builderclear 在类中 com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.IstioEgressListener.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType 在接口中 com.google.protobuf.Message.BuildergetDescriptorForType 在接口中 com.google.protobuf.MessageOrBuildergetDescriptorForType 在类中 com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.IstioEgressListener.Builder>public SidecarOuterClass.IstioEgressListener getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderpublic SidecarOuterClass.IstioEgressListener build()
build 在接口中 com.google.protobuf.Message.Builderbuild 在接口中 com.google.protobuf.MessageLite.Builderpublic SidecarOuterClass.IstioEgressListener buildPartial()
buildPartial 在接口中 com.google.protobuf.Message.BuilderbuildPartial 在接口中 com.google.protobuf.MessageLite.Builderpublic SidecarOuterClass.IstioEgressListener.Builder clone()
clone 在接口中 com.google.protobuf.Message.Builderclone 在接口中 com.google.protobuf.MessageLite.Builderclone 在类中 com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.IstioEgressListener.Builder>public SidecarOuterClass.IstioEgressListener.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField 在接口中 com.google.protobuf.Message.BuildersetField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.IstioEgressListener.Builder>public SidecarOuterClass.IstioEgressListener.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField 在接口中 com.google.protobuf.Message.BuilderclearField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.IstioEgressListener.Builder>public SidecarOuterClass.IstioEgressListener.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof 在接口中 com.google.protobuf.Message.BuilderclearOneof 在类中 com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.IstioEgressListener.Builder>public SidecarOuterClass.IstioEgressListener.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField 在接口中 com.google.protobuf.Message.BuildersetRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.IstioEgressListener.Builder>public SidecarOuterClass.IstioEgressListener.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField 在接口中 com.google.protobuf.Message.BuilderaddRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.IstioEgressListener.Builder>public SidecarOuterClass.IstioEgressListener.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom 在接口中 com.google.protobuf.Message.BuildermergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<SidecarOuterClass.IstioEgressListener.Builder>public SidecarOuterClass.IstioEgressListener.Builder mergeFrom(SidecarOuterClass.IstioEgressListener other)
public final boolean isInitialized()
isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilderisInitialized 在类中 com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.IstioEgressListener.Builder>public SidecarOuterClass.IstioEgressListener.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom 在接口中 com.google.protobuf.Message.BuildermergeFrom 在接口中 com.google.protobuf.MessageLite.BuildermergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<SidecarOuterClass.IstioEgressListener.Builder>IOExceptionpublic boolean hasPort()
The port associated with the listener. If using Unix domain socket, use 0 as the port number, with a valid protocol. The port if specified, will be used as the default destination port associated with the imported hosts. If the port is omitted, Istio will infer the listener ports based on the imported hosts. Note that when multiple egress listeners are specified, where one or more listeners have specific ports while others have no port, the hosts exposed on a listener port will be based on the listener with the most specific port.
.istio.networking.v1alpha3.Port port = 1;hasPort 在接口中 SidecarOuterClass.IstioEgressListenerOrBuilderpublic GatewayOuterClass.Port getPort()
The port associated with the listener. If using Unix domain socket, use 0 as the port number, with a valid protocol. The port if specified, will be used as the default destination port associated with the imported hosts. If the port is omitted, Istio will infer the listener ports based on the imported hosts. Note that when multiple egress listeners are specified, where one or more listeners have specific ports while others have no port, the hosts exposed on a listener port will be based on the listener with the most specific port.
.istio.networking.v1alpha3.Port port = 1;getPort 在接口中 SidecarOuterClass.IstioEgressListenerOrBuilderpublic SidecarOuterClass.IstioEgressListener.Builder setPort(GatewayOuterClass.Port value)
The port associated with the listener. If using Unix domain socket, use 0 as the port number, with a valid protocol. The port if specified, will be used as the default destination port associated with the imported hosts. If the port is omitted, Istio will infer the listener ports based on the imported hosts. Note that when multiple egress listeners are specified, where one or more listeners have specific ports while others have no port, the hosts exposed on a listener port will be based on the listener with the most specific port.
.istio.networking.v1alpha3.Port port = 1;public SidecarOuterClass.IstioEgressListener.Builder setPort(GatewayOuterClass.Port.Builder builderForValue)
The port associated with the listener. If using Unix domain socket, use 0 as the port number, with a valid protocol. The port if specified, will be used as the default destination port associated with the imported hosts. If the port is omitted, Istio will infer the listener ports based on the imported hosts. Note that when multiple egress listeners are specified, where one or more listeners have specific ports while others have no port, the hosts exposed on a listener port will be based on the listener with the most specific port.
.istio.networking.v1alpha3.Port port = 1;public SidecarOuterClass.IstioEgressListener.Builder mergePort(GatewayOuterClass.Port value)
The port associated with the listener. If using Unix domain socket, use 0 as the port number, with a valid protocol. The port if specified, will be used as the default destination port associated with the imported hosts. If the port is omitted, Istio will infer the listener ports based on the imported hosts. Note that when multiple egress listeners are specified, where one or more listeners have specific ports while others have no port, the hosts exposed on a listener port will be based on the listener with the most specific port.
.istio.networking.v1alpha3.Port port = 1;public SidecarOuterClass.IstioEgressListener.Builder clearPort()
The port associated with the listener. If using Unix domain socket, use 0 as the port number, with a valid protocol. The port if specified, will be used as the default destination port associated with the imported hosts. If the port is omitted, Istio will infer the listener ports based on the imported hosts. Note that when multiple egress listeners are specified, where one or more listeners have specific ports while others have no port, the hosts exposed on a listener port will be based on the listener with the most specific port.
.istio.networking.v1alpha3.Port port = 1;public GatewayOuterClass.Port.Builder getPortBuilder()
The port associated with the listener. If using Unix domain socket, use 0 as the port number, with a valid protocol. The port if specified, will be used as the default destination port associated with the imported hosts. If the port is omitted, Istio will infer the listener ports based on the imported hosts. Note that when multiple egress listeners are specified, where one or more listeners have specific ports while others have no port, the hosts exposed on a listener port will be based on the listener with the most specific port.
.istio.networking.v1alpha3.Port port = 1;public GatewayOuterClass.PortOrBuilder getPortOrBuilder()
The port associated with the listener. If using Unix domain socket, use 0 as the port number, with a valid protocol. The port if specified, will be used as the default destination port associated with the imported hosts. If the port is omitted, Istio will infer the listener ports based on the imported hosts. Note that when multiple egress listeners are specified, where one or more listeners have specific ports while others have no port, the hosts exposed on a listener port will be based on the listener with the most specific port.
.istio.networking.v1alpha3.Port port = 1;public String getBind()
The IP or the Unix domain socket to which the listener should be bound to. Port MUST be specified if bind is not empty. Format: `x.x.x.x` or `unix:///path/to/uds` or `unix://@foobar` (Linux abstract namespace). If omitted, Istio will automatically configure the defaults based on imported services, the workload instances to which this configuration is applied to and the captureMode. If captureMode is `NONE`, bind will default to 127.0.0.1.
string bind = 2;getBind 在接口中 SidecarOuterClass.IstioEgressListenerOrBuilderpublic com.google.protobuf.ByteString getBindBytes()
The IP or the Unix domain socket to which the listener should be bound to. Port MUST be specified if bind is not empty. Format: `x.x.x.x` or `unix:///path/to/uds` or `unix://@foobar` (Linux abstract namespace). If omitted, Istio will automatically configure the defaults based on imported services, the workload instances to which this configuration is applied to and the captureMode. If captureMode is `NONE`, bind will default to 127.0.0.1.
string bind = 2;getBindBytes 在接口中 SidecarOuterClass.IstioEgressListenerOrBuilderpublic SidecarOuterClass.IstioEgressListener.Builder setBind(String value)
The IP or the Unix domain socket to which the listener should be bound to. Port MUST be specified if bind is not empty. Format: `x.x.x.x` or `unix:///path/to/uds` or `unix://@foobar` (Linux abstract namespace). If omitted, Istio will automatically configure the defaults based on imported services, the workload instances to which this configuration is applied to and the captureMode. If captureMode is `NONE`, bind will default to 127.0.0.1.
string bind = 2;value - The bind to set.public SidecarOuterClass.IstioEgressListener.Builder clearBind()
The IP or the Unix domain socket to which the listener should be bound to. Port MUST be specified if bind is not empty. Format: `x.x.x.x` or `unix:///path/to/uds` or `unix://@foobar` (Linux abstract namespace). If omitted, Istio will automatically configure the defaults based on imported services, the workload instances to which this configuration is applied to and the captureMode. If captureMode is `NONE`, bind will default to 127.0.0.1.
string bind = 2;public SidecarOuterClass.IstioEgressListener.Builder setBindBytes(com.google.protobuf.ByteString value)
The IP or the Unix domain socket to which the listener should be bound to. Port MUST be specified if bind is not empty. Format: `x.x.x.x` or `unix:///path/to/uds` or `unix://@foobar` (Linux abstract namespace). If omitted, Istio will automatically configure the defaults based on imported services, the workload instances to which this configuration is applied to and the captureMode. If captureMode is `NONE`, bind will default to 127.0.0.1.
string bind = 2;value - The bytes for bind to set.public int getCaptureModeValue()
When the bind address is an IP, the captureMode option dictates how traffic to the listener is expected to be captured (or not). captureMode must be DEFAULT or `NONE` for Unix domain socket binds.
.istio.networking.v1alpha3.CaptureMode capture_mode = 3;getCaptureModeValue 在接口中 SidecarOuterClass.IstioEgressListenerOrBuilderpublic SidecarOuterClass.IstioEgressListener.Builder setCaptureModeValue(int value)
When the bind address is an IP, the captureMode option dictates how traffic to the listener is expected to be captured (or not). captureMode must be DEFAULT or `NONE` for Unix domain socket binds.
.istio.networking.v1alpha3.CaptureMode capture_mode = 3;value - The enum numeric value on the wire for captureMode to set.public SidecarOuterClass.CaptureMode getCaptureMode()
When the bind address is an IP, the captureMode option dictates how traffic to the listener is expected to be captured (or not). captureMode must be DEFAULT or `NONE` for Unix domain socket binds.
.istio.networking.v1alpha3.CaptureMode capture_mode = 3;getCaptureMode 在接口中 SidecarOuterClass.IstioEgressListenerOrBuilderpublic SidecarOuterClass.IstioEgressListener.Builder setCaptureMode(SidecarOuterClass.CaptureMode value)
When the bind address is an IP, the captureMode option dictates how traffic to the listener is expected to be captured (or not). captureMode must be DEFAULT or `NONE` for Unix domain socket binds.
.istio.networking.v1alpha3.CaptureMode capture_mode = 3;value - The captureMode to set.public SidecarOuterClass.IstioEgressListener.Builder clearCaptureMode()
When the bind address is an IP, the captureMode option dictates how traffic to the listener is expected to be captured (or not). captureMode must be DEFAULT or `NONE` for Unix domain socket binds.
.istio.networking.v1alpha3.CaptureMode capture_mode = 3;public com.google.protobuf.ProtocolStringList getHostsList()
One or more service hosts exposed by the listener in `namespace/dnsName` format. Services in the specified namespace matching `dnsName` will be exposed. The corresponding service can be a service in the service registry (e.g., a Kubernetes or cloud foundry service) or a service specified using a `ServiceEntry` or `VirtualService` configuration. Any associated `DestinationRule` in the same namespace will also be used. The `dnsName` should be specified using FQDN format, optionally including a wildcard character in the left-most component (e.g., `prod/*.example.com`). Set the `dnsName` to `*` to select all services from the specified namespace (e.g., `prod/*`). The `namespace` can be set to `*`, `.`, or `~`, representing any, the current, or no namespace, respectively. For example, `*/foo.example.com` selects the service from any available namespace while `./foo.example.com` only selects the service from the namespace of the sidecar. If a host is set to `*/*`, Istio will configure the sidecar to be able to reach every service in the mesh that is exported to the sidecar's namespace. The value `~/*` can be used to completely trim the configuration for sidecars that simply receive traffic and respond, but make no outbound connections of their own. NOTE: Only services and configuration artifacts exported to the sidecar's namespace (e.g., `exportTo` value of `*`) can be referenced. Private configurations (e.g., `exportTo` set to `.`) will not be available. Refer to the `exportTo` setting in `VirtualService`, `DestinationRule`, and `ServiceEntry` configurations for details. **WARNING:** The list of egress hosts in a `Sidecar` must also include the Mixer control plane services if they are enabled. Envoy will not be able to reach them otherwise. For example, add host `istio-system/istio-telemetry.istio-system.svc.cluster.local` if telemetry is enabled, `istio-system/istio-policy.istio-system.svc.cluster.local` if policy is enabled, or add `istio-system/*` to allow all services in the `istio-system` namespace. This requirement is temporary and will be removed in a future Istio release.
repeated string hosts = 4 [(.google.api.field_behavior) = REQUIRED];getHostsList 在接口中 SidecarOuterClass.IstioEgressListenerOrBuilderpublic int getHostsCount()
One or more service hosts exposed by the listener in `namespace/dnsName` format. Services in the specified namespace matching `dnsName` will be exposed. The corresponding service can be a service in the service registry (e.g., a Kubernetes or cloud foundry service) or a service specified using a `ServiceEntry` or `VirtualService` configuration. Any associated `DestinationRule` in the same namespace will also be used. The `dnsName` should be specified using FQDN format, optionally including a wildcard character in the left-most component (e.g., `prod/*.example.com`). Set the `dnsName` to `*` to select all services from the specified namespace (e.g., `prod/*`). The `namespace` can be set to `*`, `.`, or `~`, representing any, the current, or no namespace, respectively. For example, `*/foo.example.com` selects the service from any available namespace while `./foo.example.com` only selects the service from the namespace of the sidecar. If a host is set to `*/*`, Istio will configure the sidecar to be able to reach every service in the mesh that is exported to the sidecar's namespace. The value `~/*` can be used to completely trim the configuration for sidecars that simply receive traffic and respond, but make no outbound connections of their own. NOTE: Only services and configuration artifacts exported to the sidecar's namespace (e.g., `exportTo` value of `*`) can be referenced. Private configurations (e.g., `exportTo` set to `.`) will not be available. Refer to the `exportTo` setting in `VirtualService`, `DestinationRule`, and `ServiceEntry` configurations for details. **WARNING:** The list of egress hosts in a `Sidecar` must also include the Mixer control plane services if they are enabled. Envoy will not be able to reach them otherwise. For example, add host `istio-system/istio-telemetry.istio-system.svc.cluster.local` if telemetry is enabled, `istio-system/istio-policy.istio-system.svc.cluster.local` if policy is enabled, or add `istio-system/*` to allow all services in the `istio-system` namespace. This requirement is temporary and will be removed in a future Istio release.
repeated string hosts = 4 [(.google.api.field_behavior) = REQUIRED];getHostsCount 在接口中 SidecarOuterClass.IstioEgressListenerOrBuilderpublic String getHosts(int index)
One or more service hosts exposed by the listener in `namespace/dnsName` format. Services in the specified namespace matching `dnsName` will be exposed. The corresponding service can be a service in the service registry (e.g., a Kubernetes or cloud foundry service) or a service specified using a `ServiceEntry` or `VirtualService` configuration. Any associated `DestinationRule` in the same namespace will also be used. The `dnsName` should be specified using FQDN format, optionally including a wildcard character in the left-most component (e.g., `prod/*.example.com`). Set the `dnsName` to `*` to select all services from the specified namespace (e.g., `prod/*`). The `namespace` can be set to `*`, `.`, or `~`, representing any, the current, or no namespace, respectively. For example, `*/foo.example.com` selects the service from any available namespace while `./foo.example.com` only selects the service from the namespace of the sidecar. If a host is set to `*/*`, Istio will configure the sidecar to be able to reach every service in the mesh that is exported to the sidecar's namespace. The value `~/*` can be used to completely trim the configuration for sidecars that simply receive traffic and respond, but make no outbound connections of their own. NOTE: Only services and configuration artifacts exported to the sidecar's namespace (e.g., `exportTo` value of `*`) can be referenced. Private configurations (e.g., `exportTo` set to `.`) will not be available. Refer to the `exportTo` setting in `VirtualService`, `DestinationRule`, and `ServiceEntry` configurations for details. **WARNING:** The list of egress hosts in a `Sidecar` must also include the Mixer control plane services if they are enabled. Envoy will not be able to reach them otherwise. For example, add host `istio-system/istio-telemetry.istio-system.svc.cluster.local` if telemetry is enabled, `istio-system/istio-policy.istio-system.svc.cluster.local` if policy is enabled, or add `istio-system/*` to allow all services in the `istio-system` namespace. This requirement is temporary and will be removed in a future Istio release.
repeated string hosts = 4 [(.google.api.field_behavior) = REQUIRED];getHosts 在接口中 SidecarOuterClass.IstioEgressListenerOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getHostsBytes(int index)
One or more service hosts exposed by the listener in `namespace/dnsName` format. Services in the specified namespace matching `dnsName` will be exposed. The corresponding service can be a service in the service registry (e.g., a Kubernetes or cloud foundry service) or a service specified using a `ServiceEntry` or `VirtualService` configuration. Any associated `DestinationRule` in the same namespace will also be used. The `dnsName` should be specified using FQDN format, optionally including a wildcard character in the left-most component (e.g., `prod/*.example.com`). Set the `dnsName` to `*` to select all services from the specified namespace (e.g., `prod/*`). The `namespace` can be set to `*`, `.`, or `~`, representing any, the current, or no namespace, respectively. For example, `*/foo.example.com` selects the service from any available namespace while `./foo.example.com` only selects the service from the namespace of the sidecar. If a host is set to `*/*`, Istio will configure the sidecar to be able to reach every service in the mesh that is exported to the sidecar's namespace. The value `~/*` can be used to completely trim the configuration for sidecars that simply receive traffic and respond, but make no outbound connections of their own. NOTE: Only services and configuration artifacts exported to the sidecar's namespace (e.g., `exportTo` value of `*`) can be referenced. Private configurations (e.g., `exportTo` set to `.`) will not be available. Refer to the `exportTo` setting in `VirtualService`, `DestinationRule`, and `ServiceEntry` configurations for details. **WARNING:** The list of egress hosts in a `Sidecar` must also include the Mixer control plane services if they are enabled. Envoy will not be able to reach them otherwise. For example, add host `istio-system/istio-telemetry.istio-system.svc.cluster.local` if telemetry is enabled, `istio-system/istio-policy.istio-system.svc.cluster.local` if policy is enabled, or add `istio-system/*` to allow all services in the `istio-system` namespace. This requirement is temporary and will be removed in a future Istio release.
repeated string hosts = 4 [(.google.api.field_behavior) = REQUIRED];getHostsBytes 在接口中 SidecarOuterClass.IstioEgressListenerOrBuilderindex - The index of the value to return.public SidecarOuterClass.IstioEgressListener.Builder setHosts(int index, String value)
One or more service hosts exposed by the listener in `namespace/dnsName` format. Services in the specified namespace matching `dnsName` will be exposed. The corresponding service can be a service in the service registry (e.g., a Kubernetes or cloud foundry service) or a service specified using a `ServiceEntry` or `VirtualService` configuration. Any associated `DestinationRule` in the same namespace will also be used. The `dnsName` should be specified using FQDN format, optionally including a wildcard character in the left-most component (e.g., `prod/*.example.com`). Set the `dnsName` to `*` to select all services from the specified namespace (e.g., `prod/*`). The `namespace` can be set to `*`, `.`, or `~`, representing any, the current, or no namespace, respectively. For example, `*/foo.example.com` selects the service from any available namespace while `./foo.example.com` only selects the service from the namespace of the sidecar. If a host is set to `*/*`, Istio will configure the sidecar to be able to reach every service in the mesh that is exported to the sidecar's namespace. The value `~/*` can be used to completely trim the configuration for sidecars that simply receive traffic and respond, but make no outbound connections of their own. NOTE: Only services and configuration artifacts exported to the sidecar's namespace (e.g., `exportTo` value of `*`) can be referenced. Private configurations (e.g., `exportTo` set to `.`) will not be available. Refer to the `exportTo` setting in `VirtualService`, `DestinationRule`, and `ServiceEntry` configurations for details. **WARNING:** The list of egress hosts in a `Sidecar` must also include the Mixer control plane services if they are enabled. Envoy will not be able to reach them otherwise. For example, add host `istio-system/istio-telemetry.istio-system.svc.cluster.local` if telemetry is enabled, `istio-system/istio-policy.istio-system.svc.cluster.local` if policy is enabled, or add `istio-system/*` to allow all services in the `istio-system` namespace. This requirement is temporary and will be removed in a future Istio release.
repeated string hosts = 4 [(.google.api.field_behavior) = REQUIRED];index - The index to set the value at.value - The hosts to set.public SidecarOuterClass.IstioEgressListener.Builder addHosts(String value)
One or more service hosts exposed by the listener in `namespace/dnsName` format. Services in the specified namespace matching `dnsName` will be exposed. The corresponding service can be a service in the service registry (e.g., a Kubernetes or cloud foundry service) or a service specified using a `ServiceEntry` or `VirtualService` configuration. Any associated `DestinationRule` in the same namespace will also be used. The `dnsName` should be specified using FQDN format, optionally including a wildcard character in the left-most component (e.g., `prod/*.example.com`). Set the `dnsName` to `*` to select all services from the specified namespace (e.g., `prod/*`). The `namespace` can be set to `*`, `.`, or `~`, representing any, the current, or no namespace, respectively. For example, `*/foo.example.com` selects the service from any available namespace while `./foo.example.com` only selects the service from the namespace of the sidecar. If a host is set to `*/*`, Istio will configure the sidecar to be able to reach every service in the mesh that is exported to the sidecar's namespace. The value `~/*` can be used to completely trim the configuration for sidecars that simply receive traffic and respond, but make no outbound connections of their own. NOTE: Only services and configuration artifacts exported to the sidecar's namespace (e.g., `exportTo` value of `*`) can be referenced. Private configurations (e.g., `exportTo` set to `.`) will not be available. Refer to the `exportTo` setting in `VirtualService`, `DestinationRule`, and `ServiceEntry` configurations for details. **WARNING:** The list of egress hosts in a `Sidecar` must also include the Mixer control plane services if they are enabled. Envoy will not be able to reach them otherwise. For example, add host `istio-system/istio-telemetry.istio-system.svc.cluster.local` if telemetry is enabled, `istio-system/istio-policy.istio-system.svc.cluster.local` if policy is enabled, or add `istio-system/*` to allow all services in the `istio-system` namespace. This requirement is temporary and will be removed in a future Istio release.
repeated string hosts = 4 [(.google.api.field_behavior) = REQUIRED];value - The hosts to add.public SidecarOuterClass.IstioEgressListener.Builder addAllHosts(Iterable<String> values)
One or more service hosts exposed by the listener in `namespace/dnsName` format. Services in the specified namespace matching `dnsName` will be exposed. The corresponding service can be a service in the service registry (e.g., a Kubernetes or cloud foundry service) or a service specified using a `ServiceEntry` or `VirtualService` configuration. Any associated `DestinationRule` in the same namespace will also be used. The `dnsName` should be specified using FQDN format, optionally including a wildcard character in the left-most component (e.g., `prod/*.example.com`). Set the `dnsName` to `*` to select all services from the specified namespace (e.g., `prod/*`). The `namespace` can be set to `*`, `.`, or `~`, representing any, the current, or no namespace, respectively. For example, `*/foo.example.com` selects the service from any available namespace while `./foo.example.com` only selects the service from the namespace of the sidecar. If a host is set to `*/*`, Istio will configure the sidecar to be able to reach every service in the mesh that is exported to the sidecar's namespace. The value `~/*` can be used to completely trim the configuration for sidecars that simply receive traffic and respond, but make no outbound connections of their own. NOTE: Only services and configuration artifacts exported to the sidecar's namespace (e.g., `exportTo` value of `*`) can be referenced. Private configurations (e.g., `exportTo` set to `.`) will not be available. Refer to the `exportTo` setting in `VirtualService`, `DestinationRule`, and `ServiceEntry` configurations for details. **WARNING:** The list of egress hosts in a `Sidecar` must also include the Mixer control plane services if they are enabled. Envoy will not be able to reach them otherwise. For example, add host `istio-system/istio-telemetry.istio-system.svc.cluster.local` if telemetry is enabled, `istio-system/istio-policy.istio-system.svc.cluster.local` if policy is enabled, or add `istio-system/*` to allow all services in the `istio-system` namespace. This requirement is temporary and will be removed in a future Istio release.
repeated string hosts = 4 [(.google.api.field_behavior) = REQUIRED];values - The hosts to add.public SidecarOuterClass.IstioEgressListener.Builder clearHosts()
One or more service hosts exposed by the listener in `namespace/dnsName` format. Services in the specified namespace matching `dnsName` will be exposed. The corresponding service can be a service in the service registry (e.g., a Kubernetes or cloud foundry service) or a service specified using a `ServiceEntry` or `VirtualService` configuration. Any associated `DestinationRule` in the same namespace will also be used. The `dnsName` should be specified using FQDN format, optionally including a wildcard character in the left-most component (e.g., `prod/*.example.com`). Set the `dnsName` to `*` to select all services from the specified namespace (e.g., `prod/*`). The `namespace` can be set to `*`, `.`, or `~`, representing any, the current, or no namespace, respectively. For example, `*/foo.example.com` selects the service from any available namespace while `./foo.example.com` only selects the service from the namespace of the sidecar. If a host is set to `*/*`, Istio will configure the sidecar to be able to reach every service in the mesh that is exported to the sidecar's namespace. The value `~/*` can be used to completely trim the configuration for sidecars that simply receive traffic and respond, but make no outbound connections of their own. NOTE: Only services and configuration artifacts exported to the sidecar's namespace (e.g., `exportTo` value of `*`) can be referenced. Private configurations (e.g., `exportTo` set to `.`) will not be available. Refer to the `exportTo` setting in `VirtualService`, `DestinationRule`, and `ServiceEntry` configurations for details. **WARNING:** The list of egress hosts in a `Sidecar` must also include the Mixer control plane services if they are enabled. Envoy will not be able to reach them otherwise. For example, add host `istio-system/istio-telemetry.istio-system.svc.cluster.local` if telemetry is enabled, `istio-system/istio-policy.istio-system.svc.cluster.local` if policy is enabled, or add `istio-system/*` to allow all services in the `istio-system` namespace. This requirement is temporary and will be removed in a future Istio release.
repeated string hosts = 4 [(.google.api.field_behavior) = REQUIRED];public SidecarOuterClass.IstioEgressListener.Builder addHostsBytes(com.google.protobuf.ByteString value)
One or more service hosts exposed by the listener in `namespace/dnsName` format. Services in the specified namespace matching `dnsName` will be exposed. The corresponding service can be a service in the service registry (e.g., a Kubernetes or cloud foundry service) or a service specified using a `ServiceEntry` or `VirtualService` configuration. Any associated `DestinationRule` in the same namespace will also be used. The `dnsName` should be specified using FQDN format, optionally including a wildcard character in the left-most component (e.g., `prod/*.example.com`). Set the `dnsName` to `*` to select all services from the specified namespace (e.g., `prod/*`). The `namespace` can be set to `*`, `.`, or `~`, representing any, the current, or no namespace, respectively. For example, `*/foo.example.com` selects the service from any available namespace while `./foo.example.com` only selects the service from the namespace of the sidecar. If a host is set to `*/*`, Istio will configure the sidecar to be able to reach every service in the mesh that is exported to the sidecar's namespace. The value `~/*` can be used to completely trim the configuration for sidecars that simply receive traffic and respond, but make no outbound connections of their own. NOTE: Only services and configuration artifacts exported to the sidecar's namespace (e.g., `exportTo` value of `*`) can be referenced. Private configurations (e.g., `exportTo` set to `.`) will not be available. Refer to the `exportTo` setting in `VirtualService`, `DestinationRule`, and `ServiceEntry` configurations for details. **WARNING:** The list of egress hosts in a `Sidecar` must also include the Mixer control plane services if they are enabled. Envoy will not be able to reach them otherwise. For example, add host `istio-system/istio-telemetry.istio-system.svc.cluster.local` if telemetry is enabled, `istio-system/istio-policy.istio-system.svc.cluster.local` if policy is enabled, or add `istio-system/*` to allow all services in the `istio-system` namespace. This requirement is temporary and will be removed in a future Istio release.
repeated string hosts = 4 [(.google.api.field_behavior) = REQUIRED];value - The bytes of the hosts to add.public final SidecarOuterClass.IstioEgressListener.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields 在接口中 com.google.protobuf.Message.BuildersetUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.IstioEgressListener.Builder>public final SidecarOuterClass.IstioEgressListener.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields 在接口中 com.google.protobuf.Message.BuildermergeUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.IstioEgressListener.Builder>Copyright © 2018–2023 Alibaba Group. All rights reserved.