# Source: testchart/templates/hpa.yaml

apiVersion: autoscaling/v2beta1
kind: HorizontalPodAutoscaler
metadata:
  name: myrel-testchart
  labels:
    draft: draft-app
    chart: "testchart-0.1.0-SNAPSHOT"
spec:
  scaleTargetRef:
    apiVersion: apps/v1
    kind: Deployment
    name: myrel-testchart
  minReplicas: 2
  maxReplicas: 6
  metrics:
  - type: Resource
    resource:
      name: cpu
      targetAverageUtilization: 80
  - type: Resource
    resource:
      name: memory
      targetAverageUtilization: 80
