usage: config-reloader [<flags>]
Regenerates Fluentd configs based Kubernetes namespace annotations against templates, reloading
Fluentd if necessary
Flags:
--help Show context-sensitive help (also try --help-long and --help-man).
--version Show application version.
--master="" The Kubernetes API server to connect to (default: auto-detect)
--kubeconfig="" Retrieve target cluster configuration from a Kubernetes
configuration file (default: auto-detect)
--datasource=default Datasource to use default|fake|fs|multimap|crd (default: default)
--crd-migration-mode Enable the crd datasource together with the current
datasource to facilitate the migration (used only with
--datasource=default|multimap)
--fs-dir=FS-DIR If --datasource=fs is used, configure the dir hosting the files
--interval=60 Run every x seconds
--allow-file Allow @type file for namespace configuration
--id="default" The id of this deployment. It is used internally so that two
deployments don't overwrite each other's data
--fluentd-rpc-port=24444 RPC port of Fluentd
--log-level="info" Control verbosity of log level for reloader
--fluentd-loglevel="info" Control verbosity of log level for fluentd
--buffer-mount-folder="" Folder in /var/log/{} where to create all fluentd buffers
--annotation="logging.csp.vmware.com/fluentd-configmap"
Which annotation on the namespace stores the configmap name?
--default-configmap="fluentd-config"
Read the configmap by this name if namespace is not annotated.
Use empty string to suppress the default.
--status-annotation="logging.csp.vmware.com/fluentd-status"
Store configuration errors in this annotation, leave empty to turn
off
--allow-label="" When set only objects with this label can be fetched using go
templating
--allow-label-annotation="" Which annotation on the namespace stores the allow label?
--prometheus-enabled Prometheus metrics enabled (default: false)
--metrics-port=9000 Expose prometheus metrics on this port (also needs
--prometheus-enabled)
--kubelet-root="/var/lib/kubelet/"
Kubelet root dir, configured using --root-dir on the kubelet
service
--namespaces=NAMESPACES ... List of namespaces to process. If empty, processes all namespaces
--templates-dir="/templates" Where to find templates
--output-dir="/fluentd/etc" Where to output config files
--meta-key=META-KEY Attach metadata under this key
--meta-values=META-VALUES Metadata in the k=v,k2=v2 format
--fluentd-binary=FLUENTD-BINARY
Path to fluentd binary used to validate configuration
--label-selector=LABEL-SELECTOR
Label selector in the k=v,k2=v2 format (used only with
--datasource=multimap)
--allow-tag-expansion Allow specifying tags in the format 'k.{a,b}.** k.c.**' (default:
false)
--admin-namespace="kube-system"
Configurations defined in this namespace are copied as is, without
further processing. Virtual plugins can also be defined in this
namespace
--exec-timeout=30 Timeout duration (in seconds) for exec command during validation
--container-bytes-limit=51200 read_bytes_limit_per_second parameter for tail plugin per container
file. Default 2MB/min
--namespace-selector=NAMESPACE-SELECTOR
Namespace selector in the k=v,k2=v2 format to select namespaces to
process based on their labels.
Options (34)
| Option | Description | Source |
|---|---|---|
--help | Show context-sensitive help (also try --help-long and --help-man). | help |
--version | Show application version. | help |
--master "" | The Kubernetes API server to connect to (default: auto-detect) | help |
--kubeconfig "" | Retrieve target cluster configuration from a Kubernetes configuration file (default: auto-detect) | help |
--datasource default | Datasource to use default|fake|fs|multimap|crd (default: default) | help |
--crd-migration-mode | Enable the crd datasource together with the current datasource to facilitate the migration (used only with | help |
--fs-dir FS-DIR | If --datasource=fs is used, configure the dir hosting the files | help |
--interval 60 | Run every x seconds | help |
--allow-file | Allow @type file for namespace configuration | help |
--id "default" | The id of this deployment. | help |
--fluentd-rpc-port 24444 | RPC port of Fluentd | help |
--log-level "info" | Control verbosity of log level for reloader | help |
--fluentd-loglevel "info" | Control verbosity of log level for fluentd | help |
--buffer-mount-folder "" | Folder in /var/log/{} where to create all fluentd buffers | help |
--annotation | Which annotation on the namespace stores the configmap name? | help |
--default-configmap "fluentd-config" | Read the configmap by this name if namespace is not annotated. | help |
--status-annotation "logging.csp.vmware.com/fluentd-status" | Store configuration errors in this annotation, leave empty to turn off | help |
--allow-label "" | When set only objects with this label can be fetched using go templating | help |
--allow-label-annotation "" | Which annotation on the namespace stores the allow label? | help |
--prometheus-enabled | Prometheus metrics enabled (default: false) | help |
--metrics-port 9000 | Expose prometheus metrics on this port (also needs | help |
--kubelet-root "/var/lib/kubelet/" | Kubelet root dir, configured using --root-dir on the kubelet service | help |
--namespaces NAMESPACES | List of namespaces to process. | help |
--templates-dir "/templates" | Where to find templates | help |
--output-dir "/fluentd/etc" | Where to output config files | help |
--meta-key META-KEY | Attach metadata under this key | help |
--meta-values META-VALUES | Metadata in the k=v,k2=v2 format | help |
--fluentd-binary FLUENTD-BINARY | Path to fluentd binary used to validate configuration | help |
--label-selector LABEL-SELECTOR | Label selector in the k=v,k2=v2 format (used only with | help |
--allow-tag-expansion | Allow specifying tags in the format 'k.{a,b}.** k.c.**' (default: false) | help |
--admin-namespace "kube-system" | Configurations defined in this namespace are copied as is, without further processing. | help |
--exec-timeout 30 | Timeout duration (in seconds) for exec command during validation | help |
--container-bytes-limit 51200 | read_bytes_limit_per_second parameter for tail plugin per container file. | help |
--namespace-selector NAMESPACE-SELECTOR | Namespace selector in the k=v,k2=v2 format to select namespaces to process based on their labels. | help |