Skip to content

Commit

Permalink
Add FAQ for changing min-replicas flag on updater
Browse files Browse the repository at this point in the history
  • Loading branch information
mscrivo authored and Madan Gudi committed Jan 28, 2021
1 parent 6a1fc83 commit f54abfb
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions vertical-pod-autoscaler/FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- [VPA restarts my pods but does not modify CPU or memory settings. Why?](#vpa-restarts-my-pods-but-does-not-modify-CPU-or-memory-settings)
- [How can I use Prometheus as a history provider for the VPA recommender?](#how-can-i-use-prometheus-as-a-history-provider-for-the-vpa-recommender)
- [I get recommendations for my single pod replicaSet, but they are not applied. Why?](#i-get-recommendations-for-my-single-pod-replicaset-but-they-are-not-applied)

### VPA restarts my pods but does not modify CPU or memory settings

Expand Down Expand Up @@ -129,3 +130,17 @@ Here you should see the flags that you set for the VPA recommender and you shoul
```Initializing VPA from history provider```

This means that the VPA recommender is now using Prometheus as the history provider.

### I get recommendations for my single pod replicaSet but they are not applied

By default, the [`--min-replicas`](pkg/updater/main.go#L44) flag on the updater is set to 2. To change this, you can supply the arg in the [deploys/updater-deployment.yaml](deploy/updater-deployment.yaml) file:

```yaml
spec:
containers:
- name: updater
- args:
- "--min-replicas=1"
```

and then deploy it manually if your vpa is already configured.

0 comments on commit f54abfb

Please sign in to comment.