apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
  namespace: vote
  name: azure-vote-back-hpa
spec:
  maxReplicas: 10 # define max replica count
  minReplicas: 1  # define min replica count
  scaleTargetRef:
    apiVersion: apps/v1
    kind: Deployment
    name: vote
  targetCPUUtilizationPercentage: 50 # target CPU utilization