aboutsummaryrefslogtreecommitdiff
path: root/plugin/k8s_external/setup.go
diff options
context:
space:
mode:
authorGravatar Michael Kashin <mmkashin@gmail.com> 2020-05-29 10:04:23 -0700
committerGravatar GitHub <noreply@github.com> 2020-05-29 17:04:23 +0000
commit2e3ef77731f3ffffa24eae057acce3435f2babcb (patch)
treeddbf0c4fbbc09a19e7b3d41990e555a7dcc93db2 /plugin/k8s_external/setup.go
parent54fb2112ac7616db93d5b9e505079d821f15ec2d (diff)
downloadcoredns-2e3ef77731f3ffffa24eae057acce3435f2babcb.tar.gz
coredns-2e3ef77731f3ffffa24eae057acce3435f2babcb.tar.zst
coredns-2e3ef77731f3ffffa24eae057acce3435f2babcb.zip
k8s_external can now resolve CNAME returned by AWS ELB/NLB (#3916)
Automatically submitted.
Diffstat (limited to 'plugin/k8s_external/setup.go')
-rw-r--r--plugin/k8s_external/setup.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin/k8s_external/setup.go b/plugin/k8s_external/setup.go
index 5c2dce0b2..651ed1ba8 100644
--- a/plugin/k8s_external/setup.go
+++ b/plugin/k8s_external/setup.go
@@ -5,6 +5,7 @@ import (
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin"
+ "github.com/coredns/coredns/plugin/pkg/upstream"
"github.com/caddyserver/caddy"
)
@@ -30,6 +31,8 @@ func setup(c *caddy.Controller) error {
return nil
})
+ e.upstream = upstream.New()
+
dnsserver.GetConfig(c).AddPlugin(func(next plugin.Handler) plugin.Handler {
e.Next = next
return e