Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

Autoscaling function deployment in serverless-kubeless (HPA) #231

Open
@a7i

Description

@a7i

Ability to specify auto-scaling configuration. kubeless CLI allows setting it up using metrics as shown below:

$ kubeless autoscale create --help
automatically scale function based on monitored metrics

Usage:
  kubeless autoscale create <name> FLAG [flags]

Flags:
  -h, --help               help for create
      --max int32          maximum number of replicas (default 1)
      --metric string      metric to use for calculating the autoscale. Supported
      metrics: cpu, qps (default "cpu")
      --min int32          minimum number of replicas (default 1)
  -n, --namespace string   Specify namespace for the autoscale
      --value string       value of the average of the metric across all replicas.
      If metric is cpu, value is a number represented as percentage. If metric
      is qps, value must be in format of Quantity

Reference: kubeless.io autoscaling

It would be great to specify that configuration in serverless yml configuration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions