Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
C
Coredns
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Railgun
Coredns
Commits
6cec66ce
Commit
6cec66ce
authored
Mar 02, 2018
by
Miek Gieben
Committed by
GitHub
Mar 02, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
plugin/reload: enable (#1587)
Couldn't revert the original commit, just manually perform the needed tweaks.
parent
6f3a7af5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
4 deletions
+6
-4
core/dnsserver/zdirectives.go
core/dnsserver/zdirectives.go
+1
-0
core/plugin/zplugin.go
core/plugin/zplugin.go
+1
-0
plugin.cfg
plugin.cfg
+1
-1
plugin/reload/README.md
plugin/reload/README.md
+3
-3
No files found.
core/dnsserver/zdirectives.go
View file @
6cec66ce
...
@@ -11,6 +11,7 @@ package dnsserver
...
@@ -11,6 +11,7 @@ package dnsserver
// care what plugin above them are doing.
// care what plugin above them are doing.
var
Directives
=
[]
string
{
var
Directives
=
[]
string
{
"tls"
,
"tls"
,
"reload"
,
"nsid"
,
"nsid"
,
"root"
,
"root"
,
"bind"
,
"bind"
,
...
...
core/plugin/zplugin.go
View file @
6cec66ce
...
@@ -28,6 +28,7 @@ import (
...
@@ -28,6 +28,7 @@ import (
_
"github.com/coredns/coredns/plugin/nsid"
_
"github.com/coredns/coredns/plugin/nsid"
_
"github.com/coredns/coredns/plugin/pprof"
_
"github.com/coredns/coredns/plugin/pprof"
_
"github.com/coredns/coredns/plugin/proxy"
_
"github.com/coredns/coredns/plugin/proxy"
_
"github.com/coredns/coredns/plugin/reload"
_
"github.com/coredns/coredns/plugin/reverse"
_
"github.com/coredns/coredns/plugin/reverse"
_
"github.com/coredns/coredns/plugin/rewrite"
_
"github.com/coredns/coredns/plugin/rewrite"
_
"github.com/coredns/coredns/plugin/root"
_
"github.com/coredns/coredns/plugin/root"
...
...
plugin.cfg
View file @
6cec66ce
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
# log:log
# log:log
tls:tls
tls:tls
#reload:reload # enable by reverting #1511
reload:reload
nsid:nsid
nsid:nsid
root:root
root:root
bind:bind
bind:bind
...
...
plugin/reload/README.md
View file @
6cec66ce
...
@@ -15,7 +15,7 @@ The reloads are graceful - you should not see any loss of service when the
...
@@ -15,7 +15,7 @@ The reloads are graceful - you should not see any loss of service when the
reload happens. Even if the new Corefile has an error, CoreDNS will continue
reload happens. Even if the new Corefile has an error, CoreDNS will continue
to run the old config and an error message will be printed to the log.
to run the old config and an error message will be printed to the log.
In some environments (for example, Kubernetes), there may be many CoreDNS
In some environments (for example, Kubernetes), there may be many CoreDNS
instances that started very near the same time and all share a common
instances that started very near the same time and all share a common
Corefile. To prevent these all from reloading at the same time, some
Corefile. To prevent these all from reloading at the same time, some
jitter is added to the reload check interval. This is jitter from the
jitter is added to the reload check interval. This is jitter from the
...
@@ -44,7 +44,7 @@ reload [INTERVAL] [JITTER]
...
@@ -44,7 +44,7 @@ reload [INTERVAL] [JITTER]
Check with the default intervals:
Check with the default intervals:
~~~
txt
~~~
corefile
. {
. {
reload
reload
erratic
erratic
...
@@ -53,7 +53,7 @@ Check with the default intervals:
...
@@ -53,7 +53,7 @@ Check with the default intervals:
Check every 10 seconds (jitter is automatically set to 10 / 2 = 5 in this case):
Check every 10 seconds (jitter is automatically set to 10 / 2 = 5 in this case):
~~~
txt
~~~
corefile
. {
. {
reload 10s
reload 10s
erratic
erratic
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment