This MachineAutoscaler resource definition shows the parameters and sample values for the MachineAutoscaler.
apiVersion: "autoscaling.openshift.io/v1beta1"
kind: "MachineAutoscaler"
metadata:
name: "worker-us-east-1a" (1)
namespace: "openshift-machine-api"
spec:
minReplicas: 1 (2)
maxReplicas: 12 (3)
scaleTargetRef: (4)
apiVersion: machine.openshift.io/v1beta1
kind: MachineSet (5)
name: worker-us-east-1a (6)
-
Specify the
MachineAutoscaler
name. To make it easier to identify which MachineSet this MachineAutoscaler scales, specify or include the name of the MachineSet to scale. The MachineSet name takes the following form:<clusterid>-<machineset>-<aws-region-az>
-
Specify the minimum number Machines of the specified type to deploy in the specified AWS zone. Do not set this value to
0
. -
Specify the maximum number Machines of the specified type to deploy in the specified AWS zone.
-
In this section, provide values that describe the existing MachineSet to scale.
-
The
kind
parameter value is alwaysMachineSet
. -
The
name
value must match the name of an existing MachineSet, as shown in themetadata.name
parameter value.