apiVersion: autoscaling/v2 | |
kind: HorizontalPodAutoscaler | |
metadata: | |
name: cirros-pool | |
spec: | |
maxReplicas: 10 | |
minReplicas: 3 | |
scaleTargetRef: | |
apiVersion: pool.kubevirt.io/v1alpha1 | |
kind: VirtualMachinePool | |
name: cirros-pool | |
metrics: | |
- type: Resource | |
resource: | |
name: cpu | |
target: | |
type: Utilization | |
averageUtilization: 50 |