Skip to content

Latest commit

 

History

History
39 lines (35 loc) · 1.36 KB

machine-autoscaler-cr.adoc

File metadata and controls

39 lines (35 loc) · 1.36 KB

MachineAutoscaler resource definition

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)
  1. 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>

  2. Specify the minimum number Machines of the specified type to deploy in the specified AWS zone. Do not set this value to 0.

  3. Specify the maximum number Machines of the specified type to deploy in the specified AWS zone.

  4. In this section, provide values that describe the existing MachineSet to scale.

  5. The kind parameter value is always MachineSet.

  6. The name value must match the name of an existing MachineSet, as shown in the metadata.name parameter value.