apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
name: ${APPLICATION_NAME}
namespace: ${K8S_NAMESPACE}
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: backend-app
minReplicas: 2
maxReplicas: 4
targetCPUUtilizationPercentage: 50