Skip to content

Commit d243e0b

Browse files
committed
Adiditon of consul-dns-bind-addr param
1 parent 689373d commit d243e0b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

control-plane/connect-inject/webhook/consul_dataplane_sidecar.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ func (w *MeshWebhook) getContainerSidecarArgs(namespace corev1.Namespace, mpi mu
325325
envoyConcurrency = int(val)
326326
}
327327

328-
envoyAdminBindAddress := "127.0.0.1"
328+
adminBindAddress := "127.0.0.1"
329329

330330
ipAddrs, err := netaddrs.IPAddrs(context.Background(), w.ConsulAddress, hclog.New(&hclog.LoggerOptions{}))
331331
if err != nil {
@@ -335,14 +335,15 @@ func (w *MeshWebhook) getContainerSidecarArgs(namespace corev1.Namespace, mpi mu
335335

336336
for _, ipAddr := range ipAddrs {
337337
if ipAddr.IP.To4() == nil {
338-
envoyAdminBindAddress = "::"
338+
adminBindAddress = "::"
339339
break
340340
}
341341
}
342342

343343
args := []string{
344344
"-addresses", w.ConsulAddress,
345-
"-envoy-admin-bind-address=" + envoyAdminBindAddress,
345+
"-envoy-admin-bind-address=" + adminBindAddress,
346+
"-consul-dns-bind-addr" + adminBindAddress,
346347
"-grpc-port=" + strconv.Itoa(w.ConsulConfig.GRPCPort),
347348
"-proxy-service-id-path=" + proxyIDFileName,
348349
"-log-level=" + w.LogLevel,

0 commit comments

Comments
 (0)