setup/manifests/base/istio/istiocontrolplane.yaml [63:101]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        k8s:
          hpaSpec:
            # Increasing the min replica count helps with node upgrades.
            maxReplicas: 5
            minReplicas: 2
          overlays:
            - kind: Deployment
              name: istio-ingressgateway
              patches:
                # Enable NEG support to work with GCLB and IAP
                - path: spec.template.spec.readinessGates
                  value:
                    - conditionType: "cloud.google.com/load-balancer-neg-ready"

            - kind: Service
              name: istio-ingressgateway
              patches:
                # Add annotation to service to use NEG and IAP
                # Full metadata replacement is a workaround for: https://github.com/istio/istio/issues/19463
                - path: metadata
                  value:
                    name: istio-ingressgateway
                    namespace: istio-system
                    labels:
                      app: istio-ingressgateway
                      istio: ingressgateway
                      release: istio
                    annotations:
                      cloud.google.com/neg: '{"exposed_ports": {"80":{}}}'
                      anthos.cft.dev/autoneg: '{"name":"istio-ingressgateway", "max_rate_per_endpoint":100}'

                # Change type from LoadBalancer to NodePort
                # This is to support GCLB and IAP
                - path: spec.type
                  value: NodePort

                # Clear the externalTrafficPolicy for GCLB + NEG support.
                - path: spec.externalTrafficPolicy
                  value: ""
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



