Home > Mobile >  What is default log levels for Kubernetes storage sidecars
What is default log levels for Kubernetes storage sidecars

Time:01-12

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.

CodePudding user response:

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

CodePudding user response:

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

  • Related