You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
back to [root README](/README.adoc#day-to-day-operations)
1224
+
1225
+
## How to enable Vertical Pod Autoscaler ?
1226
+
1227
+
[Vertical Pod Auto scaler](https://github.com/kubernetes/autoscaler/tree/master/vertical-pod-autoscaler) is used to dynamically change
1228
+
the requests and limits of running pods. It should **not be used** in combination with Horizontal Pod Autoscaler.
1229
+
1230
+
First you need to install it in the cluster by following the [installation guide](https://github.com/kubernetes/autoscaler/tree/master/vertical-pod-autoscaler#installation)
1231
+
1232
+
1233
+
VPA has the following modes:
1234
+
1235
+
* `Off` where right sizing recommendation will be generated but it won't change any existing pods
1236
+
* `Initial` when a new pod is created, it will be configured with the limits/requests that are considered appropriate
1237
+
* `Recreate` every time a new suitable sizing event happens (when better requests/limits are computed) pods may be evicted to apply the new configuration
1238
+
* `Auto` it is the same as `Recreate`, but in the future, it may support restart-free updates
1239
+
1240
+
By default, the VPA is configured to generate recommendations only. The following configuration enables it:
1241
+
```yaml
1242
+
verticalPodAutoscaler:
1243
+
enabled: true
1244
+
```
1245
+
1246
+
To see the recommendation you can run
1247
+
```bash
1248
+
~ $ kubectl get vpa
1249
+
NAME MODE CPU MEM PROVIDED AGE
1250
+
release-nginx Auto 24m
1251
+
1252
+
1253
+
~ $ kubectl describe vpa release-nginx
1254
+
```
1255
+
1256
+
You can learn more about using Vertical Pod Autoscaler [the official
0 commit comments