Automatic Scaling of Apinizer Environments
This document explains how to configure horizontal auto-scaling operations for pods. This horizontal scaling feature optimizes resource usage by automatically increasing and decreasing the number of pods according to application demands. To use the scaling feature in your Kubernetes cluster, a metric-server must be installed. If it is not available, you can check the Kubernetes Metric Server Installation page for installation.| Field | Description |
|---|---|
| scaleTargetRef | This field specifies which deployment the scaling will work for. Example: manager. |
| minReplicas | Minimum number of pods that should exist. Example: 2. |
| maxReplicas | Maximum number of pods that can exist in the system. Example: 10. |
| averageUtilization | In this field, you can enter a percentage value for cpu and memory usage. It will create pods when it exceeds the specified level. |
| scaleDown | When it falls below the target usage level, it will reduce pods by the given value amount every 60 seconds from the newly created pods. |
| scaleUp | When it exceeds the target usage level, it is checked for 60 seconds, which is the stabilizationWindowSeconds value specified. If the condition is met, one pod is added to your cluster every 60 seconds. |
To disable the scaleDown feature, change it to “selectPolicy: Disabled”.

