apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
 name: spring-app-hpa
spec:
 scaleTargetRef:
   apiVersion: apps/v1
   kind: Deployment
   name: spring-deployment
 minReplicas: 2
 maxReplicas: 10
 targetCPUUtilizationPercentage: 50
