Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for prometheus based autoscaling #365

Open
Elyytscha opened this issue Apr 5, 2022 · 0 comments
Open

Add support for prometheus based autoscaling #365

Elyytscha opened this issue Apr 5, 2022 · 0 comments

Comments

@Elyytscha
Copy link
Contributor

Feature Request

Is your feature request related to a problem?

No

Describe the solution you'd like

would be nice to support something like this:

apiVersion: autoscaling/v2beta1
kind: HorizontalPodAutoscaler
metadata:
  name: myapplication-hpa
spec:
  scaleTargetRef:
    apiVersion: apps/v1
    kind: Deployment
    name: myapplication-deployment
  minReplicas: 3
  maxReplicas: 15
  metrics:
  - type: Pods
    pods:
      metricName: myapplication_api_response_time_avg
      targetAverageValue: "500"

maybe like

apiVersion: rc.app.stacks/v1beta2
kind: RuntimeComponent
metadata:
  name: my-app
spec:
  applicationImage: quay.io/my-repo/my-app:1.0
  service:
    type: ClusterIP
    port: 9080
  expose: true
  autoscaling:
    prometheus:
      - metricName: myapplication_api_response_time_avg
        metricAverageValue: 500
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant