Skip to content

Commit c29565f

Browse files
committed
dns-cache: Use dnsdist as Do53 frontend
1 parent b5a5513 commit c29565f

5 files changed

Lines changed: 24 additions & 19 deletions

File tree

gen/k8s/dns-cache/configmap.yml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gen/k8s/dns-cache/deployment.yml

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

k8s/dns-cache/config/dnsdist.lua

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,14 @@ key_path = '/secrets/tls-cert/tls.key'
33

44
newServer(
55
{
6-
address = '127.0.0.1:10053',
6+
address = '127.0.0.1:9053',
7+
maxInFlight = 1000,
8+
}
9+
)
10+
11+
addLocal(
12+
'0.0.0.0:10053',
13+
{
714
maxInFlight = 1000,
815
}
916
)

k8s/dns-cache/config/unbound.conf

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@ server:
88
log-servfail: yes
99
val-log-level: 2
1010

11-
interface: 0.0.0.0@10053
12-
# interface: 0.0.0.0@10853
11+
interface: 0.0.0.0@9053
1312
interface: 0.0.0.0@10443
14-
port: 10053
15-
# tls-port: 10853
13+
port: 9053
1614
https-port: 10443
1715
access-control: 10.33.0.0/16 allow
1816

k8s/dns-cache/deployment.jsonnet

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ local tls_cert_secret = 'cert-resolver-rubykaigi-net';
5151
image: '005216166247.dkr.ecr.ap-northeast-1.amazonaws.com/unbound:e1f9c57c4144a320e30e948642ddecf2f3500b99',
5252
args: ['-c', '/etc/unbound/unbound.conf', '-dd'],
5353
ports: [
54-
{ name: 'dns', containerPort: 10053, protocol: 'UDP' },
55-
{ name: 'dns-tcp', containerPort: 10053, protocol: 'TCP' },
5654
{ name: 'dns-h2', containerPort: 10443, protocol: 'TCP' },
5755
{ name: 'prom', containerPort: 9167 },
5856
],
@@ -85,6 +83,8 @@ local tls_cert_secret = 'cert-resolver-rubykaigi-net';
8583
image: '005216166247.dkr.ecr.ap-northeast-1.amazonaws.com/dnsdist:be372f5f14d6211a6aa46643c4a389fb64455246',
8684
args: ['-C', '/etc/dnsdist/dnsdist.lua', '--supervised', '--disable-syslog', '--verbose'],
8785
ports: [
86+
{ name: 'dns', containerPort: 10053, protocol: 'UDP' },
87+
{ name: 'dns-tcp', containerPort: 10053, protocol: 'TCP' },
8888
{ name: 'dns-tls', containerPort: 10853, protocol: 'TCP' },
8989
{ name: 'dns-quic', containerPort: 10853, protocol: 'UDP' },
9090
{ name: 'prom-dnsdist', containerPort: 9823 },

0 commit comments

Comments
 (0)