Skip to content

Commit c45940f

Browse files
Travis Holtonwaipeng
authored andcommitted
Remove stdout argument from coredns log
According to the documentation the first argument to log is either a domain or a '.' (dot). The current setting of 'log stdout' appears to blackhole query logs. The default output of log is stdout so the argument would not be necessary. Removing `stdout` allows coredns to send query logs to stdout. Reference: https://coredns.io/plugins/log/ Change-Id: I7837015c37eb58ba43ff42cc8b647c717fa1c650 (cherry picked from commit e4e0843)
1 parent b8e50f2 commit c45940f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

magnum/drivers/common/templates/kubernetes/fragments/core-dns-service.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ data:
7474
Corefile: |
7575
.:53 {
7676
errors
77-
log stdout
77+
log
7878
health
7979
kubernetes ${DNS_CLUSTER_DOMAIN} ${PORTAL_NETWORK_CIDR} ${PODS_NETWORK_CIDR} {
8080
pods verified

magnum/drivers/k8s_coreos_v1/templates/fragments/enable-coredns.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ write_files:
4848
Corefile: |
4949
.:53 {
5050
errors
51-
log stdout
51+
log
5252
health
5353
kubernetes ${DNS_CLUSTER_DOMAIN} {
5454
cidrs ${PORTAL_NETWORK_CIDR}

0 commit comments

Comments
 (0)