Skip to content

Commit 0d35a21

Browse files
authored
Merge pull request #7916 from omerap12/modify-docs
Removed flags docs from faq
2 parents 214215f + 96ec0cf commit 0d35a21

File tree

1 file changed

+7
-75
lines changed
  • vertical-pod-autoscaler/docs

1 file changed

+7
-75
lines changed

vertical-pod-autoscaler/docs/faq.md

Lines changed: 7 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
- [Can I run the VPA in an HA configuration?](#can-i-run-the-vpa-in-an-ha-configuration)
1010
- [What are the parameters to VPA recommender?](#what-are-the-parameters-to-vpa-recommender)
1111
- [What are the parameters to VPA updater?](#what-are-the-parameters-to-vpa-updater)
12+
- [What are the parameters to VPA admission-controller?](#what-are-the-parameters-to-vpa-admission-controller)
1213
- [How can I configure VPA to manage only specific resources?](#how-can-i-configure-vpa-to-manage-only-specific-resources)
1314
- [How can I have Pods in the kube-system namespace under VPA control in AKS?](#how-can-i-have-pods-in-the-kube-system-namespace-under-vpa-control-in-aks)
1415
- [How can I configure VPA when running in EKS with Cilium?](#how-can-i-configure-vpa-when-running-in-eks-with-cilium)
@@ -179,84 +180,15 @@ election with the `--leader-elect=true` parameter.
179180

180181
### What are the parameters to VPA recommender?
181182

182-
The following startup parameters are supported for VPA recommender:
183-
184-
Name | Type | Description | Default
185-
-|-|-|-
186-
`recommendation-margin-fraction` | Float64 | Fraction of usage added as the safety margin to the recommended request | 0.15
187-
`pod-recommendation-min-cpu-millicores` | Float64 | Minimum CPU recommendation for a pod | 25
188-
`pod-recommendation-min-memory-mb` | Float64 | Minimum memory recommendation for a pod | 250
189-
`target-cpu-percentile` | Float64 | CPU usage percentile that will be used as a base for CPU target recommendation | 0.9
190-
`recommendation-lower-bound-cpu-percentile` | Float64 | CPU usage percentile that will be used for the lower bound on CPU recommendation | 0.5
191-
`recommendation-upper-bound-cpu-percentile` | Float64 | CPU usage percentile that will be used for the upper bound on CPU recommendation | 0.95
192-
`target-memory-percentile` | Float64 | Memory usage percentile that will be used as a base for memory target recommendation | 0.9
193-
`recommendation-lower-bound-memory-percentile` | Float64 | Memory usage percentile that will be used for the lower bound on memory recommendation | 0.5
194-
`recommendation-upper-bound-memory-percentile` | Float64 | Memory usage percentile that will be used for the upper bound on memory recommendation | 0.95
195-
`checkpoints-timeout` | Duration | Timeout for writing checkpoints since the start of the recommender's main loop | time.Minute
196-
`min-checkpoints` | Int | Minimum number of checkpoints to write per recommender's main loop | 10
197-
`memory-saver` | Bool | If true, only track pods which have an associated VPA | false
198-
`recommender-interval` | Duration | How often metrics should be fetched | 1*time.Minute
199-
`checkpoints-gc-interval` | Duration | How often orphaned checkpoints should be garbage collected | 10*time.Minute
200-
`prometheus-address` | String | Where to reach for Prometheus metrics | ""
201-
`prometheus-cadvisor-job-name` | String | Name of the prometheus job name which scrapes the cAdvisor metrics | "kubernetes-cadvisor"
202-
`address` | String | The address to expose Prometheus metrics. | ":8942"
203-
`kubeconfig` | String | Path to a kubeconfig. Only required if out-of-cluster. | ""
204-
`kube-api-qps` | Float64 | QPS limit when making requests to Kubernetes apiserver | 5.0
205-
`kube-api-burst` | Float64 | QPS burst limit when making requests to Kubernetes apiserver | 10.0
206-
`storage` | String | Specifies storage mode. Supported values: prometheus, checkpoint (default) | ""
207-
`history-length` | String | How much time back prometheus have to be queried to get historical metrics | "8d"
208-
`history-resolution` | String | Resolution at which Prometheus is queried for historical metrics | "1h"
209-
`prometheus-query-timeout` | String | How long to wait before killing long queries | "5m"
210-
`pod-label-prefix` | String | Which prefix to look for pod labels in metrics | "pod_label_"
211-
`metric-for-pod-labels` | String | Which metric to look for pod labels in metrics | "up{job=\"kubernetes-pods\"}"
212-
`pod-namespace-label` | String | Label name to look for pod namespaces | "kubernetes_namespace"
213-
`pod-name-label` | String | Label name to look for pod names | "kubernetes_pod_name"
214-
`container-namespace-label` | String | Label name to look for container namespaces | "namespace"
215-
`container-pod-name-label` | String | Label name to look for container pod names | "pod_name"
216-
`container-name-label` | String | Label name to look for container names | "name"
217-
`vpa-object-namespace` | String | Namespace to search for VPA objects and pod stats. Empty means all namespaces will be used. | apiv1.NamespaceAll
218-
`container-recommendation-max-allowed-cpu` | Quantity | Maximum amount of CPU that will be recommended for a container. VerticalPodAutoscaler-level maximum allowed takes precedence over the global maximum allowed. | Empty (no max allowed cpu by default)
219-
`container-recommendation-max-allowed-memory` | Quantity | Maximum amount of memory that will be recommended for a container. VerticalPodAutoscaler-level maximum allowed takes precedence over the global maximum allowed. | Empty (no max allowed memory by default)
220-
`memory-aggregation-interval` | Duration | The length of a single interval, for which the peak memory usage is computed. Memory usage peaks are aggregated in multiples of this interval. In other words there is one memory usage sample per interval (the maximum usage over that interval | model.DefaultMemoryAggregationInterval
221-
`memory-aggregation-interval-count` | Int64 | The number of consecutive memory-aggregation-intervals which make up the MemoryAggregationWindowLength which in turn is the period for memory usage aggregation by VPA. In other words, MemoryAggregationWindowLength = memory-aggregation-interval * memory-aggregation-interval-count. | model.DefaultMemoryAggregationIntervalCount
222-
`memory-histogram-decay-half-life` | Duration | The amount of time it takes a historical memory usage sample to lose half of its weight. In other words, a fresh usage sample is twice as 'important' as one with age equal to the half life period. | model.DefaultMemoryHistogramDecayHalfLife
223-
`cpu-histogram-decay-half-life` | Duration | The amount of time it takes a historical CPU usage sample to lose half of its weight. | model.DefaultCPUHistogramDecayHalfLife
224-
`cpu-integer-post-processor-enabled` | Bool | Enable the CPU integer recommendation post processor | false
225-
`leader-elect` | Bool | Start a leader election client and gain leadership before executing the main loop. Enable this when running replicated components for high availability. **If enabling this in GKE, you MUST also manually set the `--leader-elect-resource-name` flag.** | false
226-
`leader-elect-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. This is only applicable if leader election is enabled. | 15s
227-
`leader-elect-renew-deadline` | Duration | The interval between attempts by the acting master to renew a leadership slot before it stops leading. This must be less than the lease duration. This is only applicable if leader election is enabled. | 10s
228-
`leader-elect-resource-lock` | String | The type of resource object that is used for locking during leader election. Supported options are 'leases', 'endpointsleases' and 'configmapsleases'. | "leases"
229-
`leader-elect-resource-name` | String | The name of resource object that is used for locking during leader election. **If using GKE, you must set this value to something OTHER than "vpa-recommender", for example "vpa-recommender-lease".** | "vpa-recommender"
230-
`leader-elect-resource-namespace` | String | The namespace of resource object that is used for locking during leader election. | "kube-system"
231-
`leader-elect-retry-period` | Duration | The duration the clients should wait between attempting acquisition and renewal of a leadership. This is only applicable if leader election is enabled. | 2s
183+
See the [full list of parameters in the VPA recommender](https://github.com/kubernetes/autoscaler/blob/master/vertical-pod-autoscaler/docs/flags.md#what-are-the-parameters-to-vpa-recommender).
232184

233185
### What are the parameters to VPA updater?
234186

235-
The following startup parameters are supported for VPA updater:
236-
237-
Name | Type | Description | Default
238-
-|-|-|-
239-
`pod-update-threshold` | Float64 | Ignore updates that have priority lower than the value of this flag | 0.1
240-
`in-recommendation-bounds-eviction-lifetime-threshold` | Duration | Pods that live for at least that long can be evicted even if their request is within the [MinRecommended...MaxRecommended] range | time.Hour*12
241-
`evict-after-oom-threshold` | Duration | Evict pod that has OOMed in less than evict-after-oom-threshold since start. | 10*time.Minute
242-
`updater-interval` | Duration | How often updater should run | 1*time.Minute
243-
`min-replicas` | Int | Minimum number of replicas to perform update | 2
244-
`eviction-tolerance` | Float64 | Fraction of replica count that can be evicted for update, if more than one pod can be evicted. | 0.5
245-
`eviction-rate-limit` | Float64 | Number of pods that can be evicted per seconds. A rate limit set to 0 or -1 will disable the rate limiter. | -1
246-
`eviction-rate-burst` | Int | Burst of pods that can be evicted. | 1
247-
`address` | String | The address to expose Prometheus metrics. | ":8943"
248-
`kubeconfig` | String | Path to a kubeconfig. Only required if out-of-cluster. | ""
249-
`kube-api-qps` | Float64 | QPS limit when making requests to Kubernetes apiserver | 5.0
250-
`kube-api-burst` | Float64 | QPS burst limit when making requests to Kubernetes apiserver | 10.0
251-
`use-admission-controller-status` | Bool | If true, updater will only evict pods when admission controller status is valid. | true
252-
`vpa-object-namespace` | String | Namespace to search for VPA objects. Empty means all namespaces will be used. | apiv1.NamespaceAll
253-
`leader-elect` | Bool | Start a leader election client and gain leadership before executing the main loop. Enable this when running replicated components for high availability. | false
254-
`leader-elect-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. This is only applicable if leader election is enabled. | 15s
255-
`leader-elect-renew-deadline` | Duration | The interval between attempts by the acting master to renew a leadership slot before it stops leading. This must be less than the lease duration. This is only applicable if leader election is enabled. | 10s
256-
`leader-elect-resource-lock` | String | The type of resource object that is used for locking during leader election. Supported options are 'leases', 'endpointsleases' and 'configmapsleases'. | "leases"
257-
`leader-elect-resource-name` | String | The name of resource object that is used for locking during leader election. | "vpa-updater"
258-
`leader-elect-resource-namespace` | String | The namespace of resource object that is used for locking during leader election. | "kube-system"
259-
`leader-elect-retry-period` | Duration | The duration the clients should wait between attempting acquisition and renewal of a leadership. This is only applicable if leader election is enabled. | 2s
187+
See the [full list of parameters in the VPA updater](https://github.com/kubernetes/autoscaler/blob/master/vertical-pod-autoscaler/docs/flags.md#what-are-the-parameters-to-vpa-updater).
188+
189+
### What are the parameters to VPA admission controller?
190+
191+
See the [full list of parameters in the VPA admission controller](https://github.com/kubernetes/autoscaler/blob/master/vertical-pod-autoscaler/docs/flags.md#what-are-the-parameters-to-vpa-admission-controller).
260192

261193
### How can I configure VPA to manage only specific resources?
262194

0 commit comments

Comments
 (0)