0

Can someone suggest what level of logging should be enabled for kube-dns and what parameters to use? My kube-dns pod is using 23GB of disk space and I fear its related to logging.

Has anyone else seen this behavior?

Steveno
  • 171
  • 1
  • 7
  • If only warning/error is important to you is enough to use --v=0, for more verbose output may you can try --v=2 with kubectl – d0bry Jun 13 '18 at 16:04

1 Answers1

0

There are few ways to resolve your issue:

You can change verbose of logs in theconfig of your deployment.

kubectl get -o yaml --export deployments kube-dns --namespace=kube-system > file 

Edit the file, change --v=2 to --v=0 (it will disable all logs in kube-dns) and deploy it.

kubectl apply -f ./file --namespace=kube-system 

Then clear the logs on you pods:

kubectl get pods --namespace=kube-system  
kubectl exec POD_NAME /bin/sh  

You can configure logs rotating using any of the available tools, for example fluentd.

Nick Rak
  • 2,629
  • 13
  • 19