Skip to main content
Version: 3.2

storkctl global flags

Global flags in storkctl provide configurable options that apply to all commands. These flags allow users to customize logging, output format, Kubernetes API request limits, and more.

For example, you can:

  • Control logging behavior using --logtostderr, --log_dir, and --v.
  • Specify the Kubernetes context with --kubeconfig and --context.
  • Set API request limits using --qps and --burst.
  • Define the CLI output format with --output.

The following table lists all available global flags, including their input types, descriptions, and default values.

FlagInput typeDescriptionDefaultRequired
--alsologtostderrboollog to standard error as well as filesfalseOptional
--burstintrestrict number of k8s API requests from stork2000Optional
--contextstringname of the kubeconfig context to use-Optional
--kubeconfigstringpath to the kubeconfig file to use for CLI requests-Optional
--log_backtrace_atstringwhen logging hits line file:N, emit a stack trace-Optional
--log_dirstringIf non-empty, write log files in this directory-Optional
--log_linkstringIf non-empty, add symbolic links in this directory to the log files-Optional
--logbuflevelintBuffer log messages logged at this level or lower (-1 means don't buffer; 0 means buffer INFO only; ...). Has limited applicability on non-prod platforms.0Optional
--logtostderrboollog to standard error instead of filesfalseOptional
--namespace, -nstringIf present, the namespace scope for this CLI requestdefaultOptional
--output, -ostringoutput format. One of: table|json|yamltableOptional
--qpsintrestrict number of k8s API requests from stork1000Optional
--stderrthresholdintlogs at or above this threshold go to stderr2Optional
--v, -vintlog level for V logs0Optional
--vmodulestringToStringcomma-separated list of pattern=N settings for file-filtered logging-Optional
--watch, -wboolwatch stork resourcesfalseOptional