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