Open haozibi opened 5 years ago
/set title: [Feature request] Create HPAv2 through stack.yml
is there any update to this? We also want to use kubernetes HPAv2 to scale through stack.yml
in openfaas functions deployment
Hi, @sqaisar
Since this issue was opened we did create a new auto-scaling engine for OpenFaas Pro.
It supports scaling to zero and has multiple scaling modes like capacity, rps and cpu based scaling.
The scaling rules are configured by setting labels on the function which can be done through the function yaml file or using the faas-cli.
Hello @alexellis , I want to ask some questions about HPAv2.
I have changed the auto-scaling to HPAv2 by https://docs.openfaas.com/tutorials/kubernetes-hpa/ and it works fine.
But there are some questions about creating the HPAv2 rule, can I add the HPAv2 rule using faas-cli or function yaml instead of kubectl. Because I have to deploy more functions, and I don't have permission to use kubectl
this is my function yaml
Expected Behaviour
Add HPAv2 rule by faas-cli or function yaml
Current Behaviour
Add HPAv2 rule by kubectl
Possible Solution
Steps to Reproduce (for bugs)
Context
Your Environment
FaaS-CLI version ( Full output from:
faas-cli version
):Docker version ( Full output from:
docker version
):Are you using Docker Swarm (FaaS-swarm ) or Kubernetes (FaaS-netes)?
Operating System and version (e.g. Linux, Windows, MacOS):
Link to your project or a code example to reproduce issue: