apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: name: frontend namespace: webapp spec: scaleTargetRef: apiVersion: apps/v1 kind: Deployment name: backend minReplicas: 1 maxReplicas: 4 metrics: - type: Resource resource: name: cpu target: type: Utilization averageUtilization: 99