mirror of
https://github.com/alibaba/higress.git
synced 2026-05-25 21:28:17 +08:00
251 lines
5.7 KiB
Plaintext
251 lines
5.7 KiB
Plaintext
apiVersion: networking.istio.io/v1alpha3
|
|
kind: Gateway
|
|
metadata:
|
|
annotations:
|
|
internal.istio.io/gateway-semantics: gateway
|
|
internal.istio.io/gateway-service: istio-ingressgateway.istio-system.svc.domain.suffix
|
|
internal.istio.io/parents: Gateway/gateway/default.istio-system
|
|
name: gateway-istio-autogenerated-k8s-gateway-default
|
|
namespace: istio-system
|
|
spec:
|
|
servers:
|
|
- hosts:
|
|
- '*/*.example.com'
|
|
port:
|
|
name: default
|
|
number: 80
|
|
protocol: HTTP
|
|
---
|
|
apiVersion: networking.istio.io/v1alpha3
|
|
kind: VirtualService
|
|
metadata:
|
|
annotations:
|
|
internal.istio.io/parents: HTTPRoute/multi-service.default
|
|
internal.istio.io/route-semantics: gateway
|
|
name: default~8080~echo-1.default.svc.domain.suffix
|
|
namespace: default
|
|
spec:
|
|
gateways:
|
|
- mesh
|
|
hosts:
|
|
- echo-1.default.svc.domain.suffix
|
|
http:
|
|
- match:
|
|
- port: 8080
|
|
name: default/multi-service
|
|
route:
|
|
- destination:
|
|
host: echo.default.svc.domain.suffix
|
|
port:
|
|
number: 80
|
|
---
|
|
apiVersion: networking.istio.io/v1alpha3
|
|
kind: VirtualService
|
|
metadata:
|
|
annotations:
|
|
internal.istio.io/parents: HTTPRoute/multi-service.default
|
|
internal.istio.io/route-semantics: gateway
|
|
name: default~80~echo-1.default.svc.domain.suffix
|
|
namespace: default
|
|
spec:
|
|
gateways:
|
|
- mesh
|
|
hosts:
|
|
- echo-1.default.svc.domain.suffix
|
|
http:
|
|
- match:
|
|
- port: 80
|
|
name: default/multi-service
|
|
route:
|
|
- destination:
|
|
host: echo.default.svc.domain.suffix
|
|
port:
|
|
number: 80
|
|
---
|
|
apiVersion: networking.istio.io/v1alpha3
|
|
kind: VirtualService
|
|
metadata:
|
|
annotations:
|
|
internal.istio.io/parents: HTTPRoute/echo-port.default
|
|
internal.istio.io/route-semantics: gateway
|
|
name: default~80~echo-port.default.svc.domain.suffix
|
|
namespace: default
|
|
spec:
|
|
gateways:
|
|
- mesh
|
|
hosts:
|
|
- echo-port.default.svc.domain.suffix
|
|
http:
|
|
- match:
|
|
- port: 80
|
|
name: default/echo-port
|
|
route:
|
|
- destination:
|
|
host: echo.default.svc.domain.suffix
|
|
port:
|
|
number: 80
|
|
---
|
|
apiVersion: networking.istio.io/v1alpha3
|
|
kind: VirtualService
|
|
metadata:
|
|
annotations:
|
|
internal.istio.io/parents: HTTPRoute/consumer-override.default
|
|
internal.istio.io/route-semantics: gateway
|
|
name: default~80~httpbin-apple.apple.svc.domain.suffix
|
|
namespace: default
|
|
spec:
|
|
gateways:
|
|
- mesh
|
|
hosts:
|
|
- httpbin-apple.apple.svc.domain.suffix
|
|
http:
|
|
- match:
|
|
- port: 80
|
|
name: default/consumer-override
|
|
route:
|
|
- destination:
|
|
host: httpbin-apple.apple.svc.domain.suffix
|
|
port:
|
|
number: 80
|
|
---
|
|
apiVersion: networking.istio.io/v1alpha3
|
|
kind: VirtualService
|
|
metadata:
|
|
annotations:
|
|
internal.istio.io/parents: HTTPRoute/multi-service.default
|
|
internal.istio.io/route-semantics: gateway
|
|
name: default~echo-2.default.svc.domain.suffix
|
|
namespace: default
|
|
spec:
|
|
gateways:
|
|
- mesh
|
|
hosts:
|
|
- echo-2.default.svc.domain.suffix
|
|
http:
|
|
- name: default/multi-service
|
|
route:
|
|
- destination:
|
|
host: echo.default.svc.domain.suffix
|
|
port:
|
|
number: 80
|
|
---
|
|
apiVersion: networking.istio.io/v1alpha3
|
|
kind: VirtualService
|
|
metadata:
|
|
annotations:
|
|
internal.istio.io/parents: HTTPRoute/echo.default,HTTPRoute/header.default
|
|
internal.istio.io/route-semantics: gateway
|
|
name: default~echo.default.svc.domain.suffix
|
|
namespace: default
|
|
spec:
|
|
gateways:
|
|
- mesh
|
|
hosts:
|
|
- echo.default.svc.domain.suffix
|
|
http:
|
|
- headers:
|
|
request:
|
|
add:
|
|
my-added-header: added-value
|
|
match:
|
|
- uri:
|
|
prefix: /path
|
|
name: default/header
|
|
route:
|
|
- destination:
|
|
host: echo.default.svc.domain.suffix
|
|
port:
|
|
number: 80
|
|
- name: default/echo
|
|
route:
|
|
- destination:
|
|
host: echo.default.svc.domain.suffix
|
|
port:
|
|
number: 80
|
|
---
|
|
apiVersion: networking.istio.io/v1alpha3
|
|
kind: VirtualService
|
|
metadata:
|
|
annotations:
|
|
internal.istio.io/parents: HTTPRoute/dual.default
|
|
internal.istio.io/route-semantics: gateway
|
|
name: default~example.default.svc.domain.suffix
|
|
namespace: default
|
|
spec:
|
|
gateways:
|
|
- mesh
|
|
hosts:
|
|
- example.default.svc.domain.suffix
|
|
http:
|
|
- name: default/dual
|
|
route:
|
|
- destination:
|
|
host: example.default.svc.domain.suffix
|
|
port:
|
|
number: 80
|
|
---
|
|
apiVersion: networking.istio.io/v1alpha3
|
|
kind: VirtualService
|
|
metadata:
|
|
annotations:
|
|
internal.istio.io/parents: HTTPRoute/dual.default
|
|
internal.istio.io/route-semantics: gateway
|
|
name: istio-system~gateway-istio-autogenerated-k8s-gateway-default~foo.example.com
|
|
namespace: default
|
|
spec:
|
|
gateways:
|
|
- istio-system/gateway-istio-autogenerated-k8s-gateway-default
|
|
hosts:
|
|
- foo.example.com
|
|
http:
|
|
- name: default/dual
|
|
route:
|
|
- destination:
|
|
host: example.default.svc.domain.suffix
|
|
port:
|
|
number: 80
|
|
---
|
|
apiVersion: networking.istio.io/v1alpha3
|
|
kind: VirtualService
|
|
metadata:
|
|
annotations:
|
|
internal.istio.io/parents: TCPRoute/tcp.default
|
|
internal.istio.io/route-semantics: gateway
|
|
name: tcp-tcp-0-istio-autogenerated-k8s-gateway
|
|
namespace: default
|
|
spec:
|
|
gateways:
|
|
- mesh
|
|
hosts:
|
|
- echo-1.default.svc.domain.suffix
|
|
tcp:
|
|
- route:
|
|
- destination:
|
|
host: echo.default.svc.domain.suffix
|
|
port:
|
|
number: 80
|
|
---
|
|
apiVersion: networking.istio.io/v1alpha3
|
|
kind: VirtualService
|
|
metadata:
|
|
annotations:
|
|
internal.istio.io/parents: TLSRoute/tls.default
|
|
internal.istio.io/route-semantics: gateway
|
|
name: tls-tls-0-istio-autogenerated-k8s-gateway
|
|
namespace: default
|
|
spec:
|
|
gateways:
|
|
- mesh
|
|
hosts:
|
|
- echo-1.default.svc.domain.suffix
|
|
tls:
|
|
- match:
|
|
- sniHosts:
|
|
- echo-1.default.svc.domain.suffix
|
|
route:
|
|
- destination:
|
|
host: echo.default.svc.domain.suffix
|
|
port:
|
|
number: 80
|
|
---
|