Last active
January 19, 2026 19:28
-
-
Save aarnaud/0f1bca625e18065892432097d98ef326 to your computer and use it in GitHub Desktop.
istio-tips
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| apiVersion: networking.istio.io/v1beta1 | |
| kind: DestinationRule | |
| metadata: | |
| name: mirrored-target | |
| spec: | |
| host: external-service.example.com | |
| trafficPolicy: | |
| tls: | |
| mode: SIMPLE | |
| sni: external-service.example.com # Explicitly set SNI | |
| portLevelSettings: | |
| - port: | |
| number: 443 | |
| tls: | |
| mode: SIMPLE | |
| sni: external-service.example.com | |
| --- | |
| apiVersion: networking.istio.io/v1beta1 | |
| kind: ServiceEntry | |
| metadata: | |
| name: mirrored-target | |
| spec: | |
| hosts: | |
| - external-service.example.com | |
| location: MESH_EXTERNAL | |
| ports: | |
| - name: https | |
| number: 443 | |
| protocol: HTTPS | |
| resolution: DNS | |
| endpoints: | |
| - address: external-service.example.com | |
| --- | |
| apiVersion: gateway.networking.k8s.io/v1beta1 | |
| kind: HTTPRoute | |
| metadata: | |
| name: httpbin-mirrored | |
| namespace: app-istio | |
| spec: | |
| parentRefs: | |
| - name: istio | |
| namespace: istio | |
| hostnames: | |
| - "source.example.com" | |
| rules: | |
| - matches: | |
| - path: | |
| type: PathPrefix | |
| value: / | |
| backendRefs: | |
| - name: httpbin | |
| port: 8000 | |
| filters: | |
| - type: RequestMirror | |
| requestMirror: | |
| backendRef: | |
| group: networking.istio.io | |
| kind: Hostname | |
| name: external-service.example.com | |
| port: 443 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment