Skip to main content
Version: v1.2

AutoScaler

Note: autoscaler trait is hidden by default in VelaUX, you can use it in CLI.

How to use

# sample.yaml
apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: website
spec:
components:
- name: frontend # This is the component I want to deploy
type: webservice
properties:
image: nginx
traits:
- type: cpuscaler # Automatically scale the component by CPU usage after deployed
properties:
min: 1
max: 10
cpuPercent: 60

Specification

NAMEDESCRIPTIONTYPEREQUIREDDEFAULT
minSpecify the minimal number of replicas to which the autoscaler can scale downinttrue1
maxSpecify the maximum number of of replicas to which the autoscaler can scale upinttrue10
cpuUtilSpecify the average cpu utilization, for example, 50 means the CPU usage is 50%inttrue50