Skip to content

Commit 3455d20

Browse files
authored
Add FAQ for changing min-replicas flag on updater
1 parent c92ca4c commit 3455d20

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

vertical-pod-autoscaler/FAQ.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- [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)
66
- [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)
7+
- [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)
78

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

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

131132
This means that the VPA recommender is now using Prometheus as the history provider.
133+
134+
### I get recommendations for my single pod replicaSet but they are not applied
135+
136+
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:
137+
138+
```yaml
139+
spec:
140+
containers:
141+
- name: updater
142+
- args:
143+
- "--min-replicas=1"
144+
```
145+
146+
and then deploy it manually if your vpa is already configured.

0 commit comments

Comments
 (0)