# istio_autoscaling_v2beta1_k8s_and_values.yaml
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
spec:
  components:
    ingressGateways:
    - enabled: true
      k8s:
        hpaSpec:
          metrics:
          - resource:
              name: cpu
              targetAverageUtilization: 70
            type: Resource
          - resource:
              name: memory
              targetAverageUtilization: 70
            type: Resource
      name: istio-ingressgateway
  values:
    pilot:
      cpu:
        targetAverageUtilization: 90
      memory:
        targetAverageUtilization: 90