...
As the EC Deployment uses the metrics that are exposed by the Prometheus Adapter, it is crucial for you to know how to use the adapter to expose the metrics that you want the EC Deployment to use to scale itself. You can refer to Creating Custom Metrics on Prometheus Adapter(4.0) for more information about how to create your own metrics.
Page Properties | |||||
---|---|---|---|---|---|
| |||||
ScalingThis is an example of how you can use your custom metrics in an EC Deployment. The metrics field is the same as for a normal horizontal pod autoscaler. Read more about autoscaling here: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/ . Note that a target type of “AverageValue” means the average value of all the running pods. Scale happens when the value is above the target averageValue.
|