OS Manuals

/usr/bin/pod_nanny

Autoscaling components for Kubernetes

From addon-resizer 1.8.23-r19 (os), captured 2026-11-08 by running pod_nanny --help (exit 2). permalink

Also provided by 2 other package versions
I1108 02:45:29.295882       2 pod_nanny.go:86] Invoked by [/usr/bin/pod_nanny --help]
I1108 02:45:29.295960       2 pod_nanny.go:87] Version: addon-resizer
Usage of /usr/bin/pod_nanny:
      --address string                            The address to expose Prometheus metrics. (default ":8945")
      --config-dir string                         Path of configuration containing base resource requirements. (default "MISSING")
      --container string                          The name of the container to watch. This defaults to the nanny itself. (default "pod-nanny")
      --cpu string                                The base CPU resource requirement.
      --deployment string                         The name of the deployment being monitored. This is required.
      --estimator string                          The estimator to use. Currently supported: linear, exponential (default "linear")
      --expose-metrics                            When true, exposes Prometheus metrics on the port specified by the address flag.
      --extra-cpu string                          The amount of CPU to add per resource.
      --extra-memory string                       The amount of memory to add per resource.
      --extra-storage string                      The amount of storage to add per resource. (default "0Gi")
      --healthcheck-address string                The address to expose an HTTP health-check on. (default ":8080")
      --kubeconfig string                         absolute path to the kubeconfig file specifying the apiserver instance.
      --leader-election-enable                    Whether leader election should be used.
      --leader-election-lease-duration duration   The duration that non-leader candidates will wait after observing a leadership renewal until attempting to acquire leadership of a led but unrenewed leader slot. This is effectively the maximum duration that a leader can be stopped before it is replaced by another candidate. (default 15s)
      --leader-election-renew-deadline duration   The duration that the acting master will retry refreshing leadership before giving up. (default 10s)
      --leader-election-retry-period duration     The duration to wait between tries of actions. (default 2s)
      --memory string                             The base memory resource requirement.
      --minClusterSize uint                       The smallest number of resources will be scaled to. Must be > 1. This flag is used only when an exponential estimator is used. (default 16)
      --namespace string                          The namespace of the ward. This defaults to the nanny pod's own namespace.
      --nanny-config-map-name string              The name of the ConfigMap of NannyConfiguration. Specify when getting nanny config updates through API calls.
      --pod string                                The name of the pod to watch. This defaults to the nanny's own pod. When running in a different pod, this will be empty and information will be obtained from deployment instead.
      --poll-period int                           The time, in milliseconds, to poll the dependent container. (default 10000)
      --run-on-control-plane                      Whether the addon-resizer is running on the control plane.
      --scale-down-delay duration                 The time to wait after the addon-resizer start or last scaling operation before the scale down can be performed.
      --scale-up-delay duration                   The time to wait after the addon-resizer start or last scaling operation before the scale up can be performed.
      --scaling-mode string                       The mode of scaling to be used. Possible values: 'node-proportional' or 'container-proportional' (default "node-proportional")
      --storage string                            The base storage resource requirement. (default "MISSING")
      --threshold int                             A number between 0-100. The dependent's resources are rewritten when they deviate from expected by more than threshold.
      --use-metrics                               Whether to use apiserver metrics to detect cluster size instead of the default method of listing objects from the Kubernetes API.
pflag: help requested
Options (29)
OptionDescriptionSource
--address stringThe address to expose Prometheus metrics.help
--config-dir stringPath of configuration containing base resource requirements.help
--container stringThe name of the container to watch.help
--cpu stringThe base CPU resource requirement.help
--deployment stringThe name of the deployment being monitored.help
--estimator stringThe estimator to use.help
--expose-metricsWhen true, exposes Prometheus metrics on the port specified by the address flag.help
--extra-cpu stringThe amount of CPU to add per resource.help
--extra-memory stringThe amount of memory to add per resource.help
--extra-storage stringThe amount of storage to add per resource.help
--healthcheck-address stringThe address to expose an HTTP health-check on.help
--kubeconfig stringabsolute path to the kubeconfig file specifying the apiserver instance.help
--leader-election-enableWhether leader election should be used.help
--leader-election-lease-duration durationThe duration that non-leader candidates will wait after observing a leadership renewal until attempting to acquire leadership of a led but unrenewed leader slot.help
--leader-election-renew-deadline durationThe duration that the acting master will retry refreshing leadership before giving up.help
--leader-election-retry-period durationThe duration to wait between tries of actions.help
--memory stringThe base memory resource requirement.help
--minClusterSize uintThe smallest number of resources will be scaled to.help
--namespace stringThe namespace of the ward.help
--nanny-config-map-name stringThe name of the ConfigMap of NannyConfiguration.help
--pod stringThe name of the pod to watch.help
--poll-period intThe time, in milliseconds, to poll the dependent container.help
--run-on-control-planeWhether the addon-resizer is running on the control plane.help
--scale-down-delay durationThe time to wait after the addon-resizer start or last scaling operation before the scale down can be performed.help
--scale-up-delay durationThe time to wait after the addon-resizer start or last scaling operation before the scale up can be performed.help
--scaling-mode stringThe mode of scaling to be used.help
--storage stringThe base storage resource requirement.help
--threshold intA number between 0-100.help
--use-metricsWhether to use apiserver metrics to detect cluster size instead of the default method of listing objects from the Kubernetes API.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.