Hello,
I access to an external service with mTLS via an egress gateway as describe in this documentation https://istio.io/latest/docs/tasks/traffic-management/egress/egress-gateway-tls-origination/#perform-mutual-tls-origination-with-an-egress-gateway
Nevertheless, I try to configure my pod to access directly the external service with mTLS in order to call directly in https without made http first.
My conf is like this:
apiVersion: networking.istio.io/v1alpha3
kind: ServiceEntry
metadata:
name: testser.cbp-dev.com
spec:
hosts:
- <external.service.host>
ports:
- number: 80
name: http-port
protocol: HTTP
- number: 443
name: tls-port
protocol: TLS
resolution: DNS
location: MESH_EXTERNAL
---
apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
name: <external.service.host>
spec:
host: <external.service.host>
trafficPolicy:
tls:
mode: MUTUAL
credentialName: <secretNameWithCredential>
sni: <external.service.host>
Unfortunatly, it doesn’t work and I can’t understand why.
Is there somebody to explain me why it doesn’t work