Skip to content

Commit

Permalink
chore: update default config in node-local-dns (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
SweetOps authored Jan 17, 2023
1 parent 5ce05c7 commit 1ee67e3
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 11 deletions.
2 changes: 1 addition & 1 deletion charts/node-local-dns/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
apiVersion: v2
name: node-local-dns
version: 0.2.0
version: 0.2.1
appVersion: 1.17.4
description: NodeLocal DNS Cache helm chart
keywords:
Expand Down
78 changes: 68 additions & 10 deletions charts/node-local-dns/values.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
---
image:
repository: k8s.gcr.io/dns/k8s-dns-node-cache
pullPolicy: IfNotPresent
tag: 1.17.4
args:
interfaceName: nodelocaldns
healthPort: 8080
skipTeardown: true
skipTeardown: false
syncInterval: 1ns
# setupIptables: false
setupIptables: true
# setupEbtables: false
# quiet: false
# upstreamSvc: kube-dns

imagePullSecrets: []

config:
localDnsIp: 169.254.20.11
kubeDnsIp: ""
localDnsIp: 169.254.20.10
kubeDnsIp: 172.20.0.10
zones:
- zone: .:53
plugins:
Expand All @@ -29,13 +28,16 @@ config:
classes: all
cache:
parameters: 30
denial: {}
denial:
{}
# size: 0
# ttl: 1
success: {}
success:
{}
# size: 8192
# ttl: 30
prefetch: {}
prefetch:
{}
# amount: 1
# duration: 10m
# percentage: 20%
Expand All @@ -61,8 +63,22 @@ config:
classes: all
cache:
parameters: 30
denial:
{}
# size: 0
# ttl: 1
success:
{}
# size: 8192
# ttl: 30
prefetch:
{}
# amount: 1
# duration: 10m
# percentage: 20%
serve_stale: false
forward:
parameters: __PILLAR__UPSTREAM__SERVERS__
parameters: __PILLAR__CLUSTER__DNS__
force_tcp: false
prometheus: true
health:
Expand All @@ -77,8 +93,50 @@ config:
classes: all
cache:
parameters: 30
denial:
{}
# size: 0
# ttl: 1
success:
{}
# size: 8192
# ttl: 30
prefetch:
{}
# amount: 1
# duration: 10m
# percentage: 20%
serve_stale: false
forward:
parameters: __PILLAR__UPSTREAM__SERVERS__
parameters: __PILLAR__CLUSTER__DNS__
force_tcp: false
prometheus: true
health:
port: 8080
- zone: cluster.local:53
plugins:
errors: true
reload: true
debug: false
log:
format: combined
classes: all
cache:
parameters: 30
denial:
size: 0
ttl: 1
success:
size: 9984
ttl: 30
prefetch:
{}
# amount: 1
# duration: 10m
# percentage: 20%
serve_stale: false
forward:
parameters: __PILLAR__CLUSTER__DNS__
force_tcp: false
prometheus: true
health:
Expand Down

0 comments on commit 1ee67e3

Please sign in to comment.