# istio_autoscaling_ingress_v2.yaml
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
spec:
  components:
    ingressGateways:
    - enabled: true
      name: istio-ingressgateway
      k8s:
        hpaSpec:
          metrics:
          - resource:
              name: cpu
              target:
                type: Utilization
                averageUtilization: 80
          - resource:
              name: memory
              target:
                type: Utilization
                averageUtilization: 80
  values:
    pilot:
      cpu:
        targetAverageUtilization: 90
      memory:
        targetAverageUtilization: 90