Score

Capability

Horizontal Pod Autoscaler

Define how to use an horizontal-pod-autoscaler resource type for a Workload.

There should be a resource of type horizontal-pod-autoscaler defined in your resource definitions, see examples here .


score.yaml ( view on GitHub ) :

apiVersion: score.dev/v1b1
metadata:
  name: my-workload
containers:
  my-container:
    image: .
resources:
  hpa:
    type: horizontal-pod-autoscaler
    params: # optional.
      maxReplicas: 2 # optional.
      minReplicas: 1 # optional.
      targetCPUUtilizationPercentage: 80 # optional.
Top