I'm trying to create an Istio ingress gateway (istio: 1.9.1, EKS: 1.18) with a duplicate targetPort
like this:
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
but I get the error:
- 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="istio-proxy"].ports: duplicate entries for key [containerPort=8080,protocol="TCP"]
I am running Istio in EKS so we terminate TLS at the NLB, so all traffic (http
and https
) should go to the pod on the same port (8080)
Any ideas how I can solve this issue?
Had to use different targetPorts in the end to get this working