Home

envoy.config.cluster.v3.Cluster

Example

Disclaimer: The example is meant to show what methods are available on the object and does not necessarily constitute working code.
local types = import 'types.libsonnet';

types.envoy.config.cluster.v3.Cluster
.withAltStatName('string')
.withCircuitBreakers(types.envoy.config.cluster.v3.CircuitBreakers)
.withCleanupInterval(types.google.protobuf.Duration)
.withCloseConnectionsOnHostHealthFailure(false)
.withClusterType(types.envoy.config.cluster.v3.Cluster.CustomClusterType)
.withCommonHttpProtocolOptions(types.envoy.config.core.v3.HttpProtocolOptions)
.withCommonLbConfig(types.envoy.config.cluster.v3.Cluster.CommonLbConfig)
.withConnectTimeout(types.google.protobuf.Duration)
.withConnectionPoolPerDownstreamConnection(false)
.withDnsFailureRefreshRate(types.envoy.config.cluster.v3.Cluster.RefreshRate)
.withDnsLookupFamily(types.envoy.config.cluster.v3.Cluster.DnsLookupFamily.AUTO)
.withDnsRefreshRate(types.google.protobuf.Duration)
.withDnsResolutionConfig(types.envoy.config.core.v3.DnsResolutionConfig)
.withDnsResolvers([ types.envoy.config.core.v3.Address ])
.withEdsClusterConfig(types.envoy.config.cluster.v3.Cluster.EdsClusterConfig)
.withFilters([ types.envoy.config.cluster.v3.Filter ])
.withHealthChecks([ types.envoy.config.core.v3.HealthCheck ])
.withHttp2ProtocolOptions(types.envoy.config.core.v3.Http2ProtocolOptions)
.withHttpProtocolOptions(types.envoy.config.core.v3.Http1ProtocolOptions)
.withIgnoreHealthOnHostRemoval(false)
.withLbPolicy(types.envoy.config.cluster.v3.Cluster.LbPolicy.ROUND_ROBIN)
.withLbSubsetConfig(types.envoy.config.cluster.v3.Cluster.LbSubsetConfig)
.withLeastRequestLbConfig(types.envoy.config.cluster.v3.Cluster.LeastRequestLbConfig)
.withLoadAssignment(types.envoy.config.endpoint.v3.ClusterLoadAssignment)
.withLoadBalancingPolicy(types.envoy.config.cluster.v3.LoadBalancingPolicy)
.withLrsServer(types.envoy.config.core.v3.ConfigSource)
.withMaglevLbConfig(types.envoy.config.cluster.v3.Cluster.MaglevLbConfig)
.withMaxRequestsPerConnection(1)
.withMetadata(types.envoy.config.core.v3.Metadata)
.withName('string')
.withOriginalDstLbConfig(types.envoy.config.cluster.v3.Cluster.OriginalDstLbConfig)
.withOutlierDetection(types.envoy.config.cluster.v3.OutlierDetection)
.withPerConnectionBufferLimitBytes(1)
.withPreconnectPolicy(types.envoy.config.cluster.v3.Cluster.PreconnectPolicy)
.withProtocolSelection(types.envoy.config.cluster.v3.Cluster.ClusterProtocolSelection.USE_CONFIGURED_PROTOCOL)
.withRespectDnsTtl(false)
.withRingHashLbConfig(types.envoy.config.cluster.v3.Cluster.RingHashLbConfig)
.withRoundRobinLbConfig(types.envoy.config.cluster.v3.Cluster.RoundRobinLbConfig)
.withTrackClusterStats(types.envoy.config.cluster.v3.TrackClusterStats)
.withTrackTimeoutBudgets(false)
.withTransportSocket(types.envoy.config.core.v3.TransportSocket)
.withTransportSocketMatches([ types.envoy.config.cluster.v3.Cluster.TransportSocketMatch ])
.withType(types.envoy.config.cluster.v3.Cluster.DiscoveryType.STATIC)
.withTypedDnsResolverConfig(types.envoy.config.core.v3.TypedExtensionConfig)
.withTypedExtensionProtocolOptions({ key: types.google.protobuf.Any })
.withUpstreamBindConfig(types.envoy.config.core.v3.BindConfig)
.withUpstreamConfig(types.envoy.config.core.v3.TypedExtensionConfig)
.withUpstreamConnectionOptions(types.envoy.config.cluster.v3.UpstreamConnectionOptions)
.withUpstreamHttpProtocolOptions(types.envoy.config.core.v3.UpstreamHttpProtocolOptions)
.withUseTcpForDnsLookups(false)
.withWaitForWarmOnInit(false)
._validate()

Nested Enums

Nested Messages

Fields

Name Type One-of group Required Constraints
alt_stat_name string  
circuit_breakers envoy.config.cluster.v3.CircuitBreakers  
cleanup_interval google.protobuf.Duration   {"Duration":{"gt":{}}}
close_connections_on_host_health_failure bool  
cluster_type envoy.config.cluster.v3.Cluster.CustomClusterType cluster_discovery_type  
common_http_protocol_options envoy.config.core.v3.HttpProtocolOptions  
common_lb_config envoy.config.cluster.v3.Cluster.CommonLbConfig  
connect_timeout google.protobuf.Duration   {"Duration":{"gt":{}}}
connection_pool_per_downstream_connection bool  
dns_failure_refresh_rate envoy.config.cluster.v3.Cluster.RefreshRate  
dns_lookup_family envoy.config.cluster.v3.Cluster.DnsLookupFamily   {"Enum":{"defined_only":true}}
dns_refresh_rate google.protobuf.Duration   {"Duration":{"gt":{"nanos":1000000}}}
dns_resolution_config envoy.config.core.v3.DnsResolutionConfig  
dns_resolvers [] envoy.config.core.v3.Address  
eds_cluster_config envoy.config.cluster.v3.Cluster.EdsClusterConfig  
filters [] envoy.config.cluster.v3.Filter  
health_checks [] envoy.config.core.v3.HealthCheck  
http2_protocol_options envoy.config.core.v3.Http2ProtocolOptions  
http_protocol_options envoy.config.core.v3.Http1ProtocolOptions  
ignore_health_on_host_removal bool  
lb_policy envoy.config.cluster.v3.Cluster.LbPolicy   {"Enum":{"defined_only":true}}
lb_subset_config envoy.config.cluster.v3.Cluster.LbSubsetConfig  
least_request_lb_config envoy.config.cluster.v3.Cluster.LeastRequestLbConfig lb_config  
load_assignment envoy.config.endpoint.v3.ClusterLoadAssignment  
load_balancing_policy envoy.config.cluster.v3.LoadBalancingPolicy  
lrs_server envoy.config.core.v3.ConfigSource  
maglev_lb_config envoy.config.cluster.v3.Cluster.MaglevLbConfig lb_config  
max_requests_per_connection google.protobuf.UInt32Value  
metadata envoy.config.core.v3.Metadata  
name string   {"String_":{"WellKnown":null,"min_len":1}}
original_dst_lb_config envoy.config.cluster.v3.Cluster.OriginalDstLbConfig lb_config  
outlier_detection envoy.config.cluster.v3.OutlierDetection  
per_connection_buffer_limit_bytes google.protobuf.UInt32Value  
preconnect_policy envoy.config.cluster.v3.Cluster.PreconnectPolicy  
protocol_selection envoy.config.cluster.v3.Cluster.ClusterProtocolSelection  
respect_dns_ttl bool  
ring_hash_lb_config envoy.config.cluster.v3.Cluster.RingHashLbConfig lb_config  
round_robin_lb_config envoy.config.cluster.v3.Cluster.RoundRobinLbConfig lb_config  
track_cluster_stats envoy.config.cluster.v3.TrackClusterStats  
track_timeout_budgets bool  
transport_socket envoy.config.core.v3.TransportSocket  
transport_socket_matches [] envoy.config.cluster.v3.Cluster.TransportSocketMatch  
type envoy.config.cluster.v3.Cluster.DiscoveryType cluster_discovery_type   {"Enum":{"defined_only":true}}
typed_dns_resolver_config envoy.config.core.v3.TypedExtensionConfig  
typed_extension_protocol_options map[string] google.protobuf.Any  
upstream_bind_config envoy.config.core.v3.BindConfig  
upstream_config envoy.config.core.v3.TypedExtensionConfig  
upstream_connection_options envoy.config.cluster.v3.UpstreamConnectionOptions  
upstream_http_protocol_options envoy.config.core.v3.UpstreamHttpProtocolOptions  
use_tcp_for_dns_lookups bool  
wait_for_warm_on_init google.protobuf.BoolValue