<p>I'm trying to create an Istio ingress gateway (istio: 1.9.1, EKS: 1.18) with a duplicate <code>targetPort</code> like this:</p>
<pre><code>apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
metadata:
  name: istio
spec:
  components:
    ingressGateways:
      - name: ingressgateway
        k8s:
          service:
            ports:
              - port: 80
                targetPort: 8080
                name: http2
              - port: 443
                name: https
                targetPort: 8080
</code></pre>
<p>but I get the error:</p>
<pre><code>- Processing resources for Ingress gateways.
✘ Ingress gateways encountered an error: failed to update resource with server-side apply for obj Deployment/istio-system/istio: failed to create typed patch object: errors:
.spec.template.spec.containers[name=&quot;istio-proxy&quot;].ports: duplicate entries for key [containerPort=8080,protocol=&quot;TCP&quot;]
</code></pre>
<p>I am running Istio in EKS so we terminate TLS at the NLB, so all traffic (<code>http</code> and <code>https</code>) should go to the pod on the same port (8080)</p>
<p>Any ideas how I can solve this issue?</p>

SamMaj
<p>Had to use different targetPorts in the end to get this working</p>
