What is default log levels for Kubernetes storage sidecars

57 Views Asked by At

What would be default log level for Kubernetes storage sidecars such as external-snapshotter, external-provisioner, external-attacher etc. I couldnt get details from code (checked external-snapshotter) code. Is there a way to know default log level that gets set.

2

There are 2 best solutions below

0
On

You should find klog.V(5) in the source as well as --v=5 in the deployment spec.

0
On

Like gohm'c said you can get the information from the deployment files and you can also use kubectl commands for getting the verbose level. The command looks like this

Kubectl get deployments -v (level)

By using the verbose level arguments you can filter out the deployments and find the log level for respective deployments and if you don’t want to use default verbose level you can also mention -v tag and level while creating the deployment.

This document outlines a few cases where we can use verbose