Skip to content

Commit ff7c3b8

Browse files
committed
[gateway/xds] Use local DNS resolver
1 parent 1afa4ad commit ff7c3b8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

pkg/gateway/xds/translator/cluster.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,18 @@ func buildXdsCluster(args *xdsClusterArgs) *clusterv3.Cluster {
8383
LocalityWeightedLbConfig: &clusterv3.Cluster_CommonLbConfig_LocalityWeightedLbConfig{}}},
8484
OutlierDetection: &clusterv3.OutlierDetection{},
8585
PerConnectionBufferLimitBytes: wrapperspb.UInt32(tcpClusterPerConnectionBufferLimitBytes),
86+
DnsResolvers: []*corev3.Address{
87+
{
88+
Address: &corev3.Address_SocketAddress{
89+
SocketAddress: &corev3.SocketAddress{
90+
Address: "127.0.0.1",
91+
PortSpecifier: &corev3.SocketAddress_PortValue{
92+
PortValue: 8053,
93+
},
94+
},
95+
},
96+
},
97+
},
8698
}
8799

88100
cluster.ConnectTimeout = buildConnectTimeout(args.timeout)

0 commit comments

Comments
 (0)