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

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

Open
a7i opened this issue Apr 2, 2021 · 0 comments
Open

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

a7i opened this issue Apr 2, 2021 · 0 comments

Comments

@a7i
Copy link

a7i commented Apr 2, 2021

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant