apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: name: node-app namespace: default spec: scaleTargetRef: apiVersion: apps/v1 kind: Deployment name: node-app minReplicas: 1 maxReplicas: 5 metrics: - type: Resource resource: name: cpu target: type: Utilization averageUtilization: 30