4.5. kubectl tungsten Global Flags

Table 4.13. kubectl tungsten Global Flags

OptionDescription
--add_dir_headerIf true, adds the file directory to the header of the log messages
--alsologtostderrLog to standard error as well as files (no effect when -logtostderr=true)
--as-groupGroup to impersonate for the operation, this flag can be repeated to specify multiple groups.
--as-uidUID to impersonate for the operation.
--asUsername to impersonate for the operation. User could be a regular user or a service account in a namespace.
--cache-dir stringDefault cache directory (default '$HOME/.kube/cache')
--certificate-authorityPath to a cert file for the certificate authority
--client-certificatePath to a client certificate file for TLS
--client-keyPath to a client key file for TLS
--contextThe name of the kubeconfig context to use
--disable-compressionIf true, opt-out of response compression for all requests to the server
--insecure-skip-tls-verifyIf true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
--clusterThe name of the kubeconfig cluster to use
--kubeconfigPath to the kubeconfig file to use for CLI requests.
--userThe name of the kubeconfig user to use
--log_backtrace_atwhen logging hits line file:N, emit a stack trace (default :0)
--log_dirIf non-empty, write log files in this directory (no effect when -logtostderr=true)
--log_fileIf non-empty, use this log file (no effect when -logtostderr=true)
--log_file_max_sizeDefines the maximum size a log file can grow to (no effect when -logtostderr=true). Unit is megabytes. If the value is 0, the maximum file size is unlimited. (default 1800)
--logtostderrLog to standard error instead of files (default true)
--namespace, -nIf present, the namespace scope for this CLI request
--one_outputIf true, only write logs to their native severity level (vs also writing to each lower severity level; no effect when -logtostderr=true)
--request-timeoutThe length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default 0)
-s, --serverThe address and port of the Kubernetes API server
--skip_headersIf true, avoid header prefixes in the log messages
--skip_log_headersIf true, avoid headers when opening log files (no effect when -logtostderr=true)
--stderrthresholdLogs at or above this threshold go to stderr when writing to files and stderr (no effect when --logtostderr=true or --alsologtostderr=true) (default 2)
--tls-server-nameServer name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used
--tokenBearer token for authentication to the API server
-v [Level], --v [Level]Number for the log level verbosity
--vmodule moduleSpecComma-separated list of pattern=N settings for file-filtered logging