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

# ---

# apiVersion: autoscaling/v1
# kind: HorizontalPodAutoscaler
# metadata:
#   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: azure-vote-back
#   targetCPUUtilizationPercentage: 50 # target CPU utilization