Skip to content

Commit

Permalink
combine two VSs into one
Browse files Browse the repository at this point in the history
  • Loading branch information
libesz committed Nov 27, 2023
1 parent 8a9ed35 commit 92d16a2
Showing 1 changed file with 10 additions and 21 deletions.
31 changes: 10 additions & 21 deletions content/en/blog/2023/egress-sni/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ spec:
- "*.wikipedia.org"
gateways:
- mesh
- egressgateway
tls:
- match:
- gateways:
Expand All @@ -193,29 +194,17 @@ spec:
- destination:
host: egressgateway.istio-egress.svc.cluster.local
subset: wildcard

---
# Dummy routing instruction. If omitted, no reference will point to the Gateway
# definition, and istiod will optimise the whole new listener out.
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: direct-wildcard-through-egress-gateway2
namespace: istio-system
spec:
hosts:
- "*"
gateways:
- egressgateway
tcp:
- match:
- gateways:
- egressgateway
port: 8443
route:
- destination:
host: "dummy.local"
weight: 100
tcp:
- match:
- gateways:
- egressgateway
port: 8443
route:
- destination:
host: "dummy.local"
weight: 100

---
# Instruct sidecars to use Istio mTLS when sending traffic to the egress gateway
Expand Down

0 comments on commit 92d16a2

Please sign in to comment.