From c5521a32dc78e44bb6baa33899025c98c518894f Mon Sep 17 00:00:00 2001 From: Matthew Mosesohn Date: Fri, 9 Dec 2016 17:18:21 +0300 Subject: [PATCH] Reduce logging level of kubedns Kubedns with --v=2 can generate up to 1gb per day in logs. New default level is 1. New variable kubedns_log_level can be used to raise verbosity for debugging. --- roles/kubernetes-apps/ansible/templates/kubedns-rc.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/kubernetes-apps/ansible/templates/kubedns-rc.yml b/roles/kubernetes-apps/ansible/templates/kubedns-rc.yml index 0fe4d2f58..97710ba37 100644 --- a/roles/kubernetes-apps/ansible/templates/kubedns-rc.yml +++ b/roles/kubernetes-apps/ansible/templates/kubedns-rc.yml @@ -56,7 +56,7 @@ spec: # command = "/kube-dns" - --domain={{ dns_domain }}. - --dns-port=10053 - - --v={{ kube_log_level }} + - --v={{ kubedns_log_level | default(1)}} ports: - containerPort: 10053 name: dns-local