OS Manuals

/usr/bin/injector

Looks for pods initialized with the Dapr annotations, and then creates another container in that pod for the daprd service

From dapr-injector-1.19 1.19.1-r2 (enterprise-packages), captured 2026-11-08 by running injector --help (exit 0). permalink

Usage of injector:
      --enable-metrics                  Enable prometheus metric (default true)
      --healthz-listen-address string   The listening address for the healthz server
      --healthz-port int                The port used for health checks (default 8080)
      --kubeconfig string               (optional) absolute path to the kubeconfig file (default "/tmp/.kube/config")
      --listen-address string           The listen address for the injector service
      --log-as-json                     print log as JSON (default false)
      --log-file string                 Path to a file where logs will be written
      --log-file-compression string     Compression for rotated log files: "none" or "gzip" (default none). No effect without a file destination
      --log-file-max-age string         Maximum number of days to retain rotated log files. 0 disables age-based deletion. No effect without a file destination
      --log-file-max-backups string     Maximum number of rotated log files to keep. 0 keeps all files. No effect without a file destination
      --log-file-max-size string        Maximum size in megabytes of the log file before it gets rotated. 0 disables size-based rotation. No effect without a file destination
      --log-level string                Options are debug, info, warn, error, or fatal (default info) (default "info")
      --log-outputs string              Comma-separated list of log destinations: "stdout", "stderr", or a file path (default stdout). Merged with --log-file when both are set
      --log-timestamp-format string     Format for log timestamps, expressed as a Go time layout, e.g. '2006/01/02 15:04:05.000' (default RFC3339 with nanoseconds)
      --metrics-listen-address string   The address for the metrics server (default "0.0.0.0")
      --metrics-port string             The port for the metrics server (default "9090")
      --port int                        The port used for the injector service (default 4000)
      --scheduler-enabled               Marks if scheduler is enabled in the cluster, and address should be patched on sidecars. (default true)
Options (18)
OptionDescriptionSource
--enable-metricsEnable prometheus metric (default true)help
--healthz-listen-address stringThe listening address for the healthz serverhelp
--healthz-port intThe port used for health checks (default 8080)help
--kubeconfig string(optional) absolute path to the kubeconfig file (default "/tmp/.kube/config")help
--listen-address stringThe listen address for the injector servicehelp
--log-as-jsonprint log as JSON (default false)help
--log-file stringPath to a file where logs will be writtenhelp
--log-file-compression stringCompression for rotated log files: "none" or "gzip" (default none).help
--log-file-max-age stringMaximum number of days to retain rotated log files.help
--log-file-max-backups stringMaximum number of rotated log files to keep.help
--log-file-max-size stringMaximum size in megabytes of the log file before it gets rotated.help
--log-level stringOptions are debug, info, warn, error, or fatal (default info) (default "info")help
--log-outputs stringComma-separated list of log destinations: "stdout", "stderr", or a file path (default stdout).help
--log-timestamp-format stringFormat for log timestamps, expressed as a Go time layout, e.g. '2006/01/02 15:04:05.000' (default RFC3339 with nanoseconds)help
--metrics-listen-address stringThe address for the metrics server (default "0.0.0.0")help
--metrics-port stringThe port for the metrics server (default "9090")help
--port intThe port used for the injector service (default 4000)help
--scheduler-enabledMarks if scheduler is enabled in the cluster, and address should be patched on sidecars.help

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.