istio
1apiVersion: networking.istio.io/v1alpha3
2kind: Gateway
3metadata:
4annotations:
5internal.istio.io/gateway-semantics: gateway
6internal.istio.io/gateway-service: istio-ingressgateway.istio-system.svc.domain.suffix
7internal.istio.io/parents: Gateway/gateway/default.istio-system
8creationTimestamp: null
9name: gateway-istio-autogenerated-k8s-gateway-default
10namespace: istio-system
11spec:
12servers:
13- hosts:
14- '*/*.domain.example'
15port:
16name: default
17number: 80
18protocol: HTTP
19---
20apiVersion: networking.istio.io/v1alpha3
21kind: VirtualService
22metadata:
23annotations:
24internal.istio.io/parents: GRPCRoute/grpc.default
25internal.istio.io/route-semantics: gateway
26creationTimestamp: null
27name: grpc-0-istio-autogenerated-k8s-gateway
28namespace: default
29spec:
30gateways:
31- istio-system/gateway-istio-autogenerated-k8s-gateway-default
32hosts:
33- first.domain.example
34http:
35- headers:
36request:
37add:
38my-added-header: added-value
39remove:
40- my-removed-header
41match:
42- headers:
43my-header:
44exact: some-value
45uri:
46prefix: /foo/
47name: default.grpc.0
48route:
49- destination:
50host: httpbin.default.svc.domain.suffix
51port:
52number: 80
53- match:
54- uri:
55regex: /[^/]+/bar
56name: default.grpc.1
57route:
58- destination:
59host: httpbin.default.svc.domain.suffix
60port:
61number: 80
62---
63apiVersion: networking.istio.io/v1alpha3
64kind: VirtualService
65metadata:
66annotations:
67internal.istio.io/parents: GRPCRoute/grpc.default
68internal.istio.io/route-semantics: gateway
69creationTimestamp: null
70name: grpc-1-istio-autogenerated-k8s-gateway
71namespace: default
72spec:
73gateways:
74- istio-system/gateway-istio-autogenerated-k8s-gateway-default
75hosts:
76- another.domain.example
77http:
78- headers:
79request:
80add:
81my-added-header: added-value
82remove:
83- my-removed-header
84match:
85- headers:
86my-header:
87exact: some-value
88uri:
89prefix: /foo/
90name: default.grpc.0
91route:
92- destination:
93host: httpbin.default.svc.domain.suffix
94port:
95number: 80
96- match:
97- uri:
98regex: /[^/]+/bar
99name: default.grpc.1
100route:
101- destination:
102host: httpbin.default.svc.domain.suffix
103port:
104number: 80
105---
106