Files
higress/pkg/ingress/kube/gateway/istio/testdata/grpc.yaml.golden
2025-11-26 10:15:00 +08:00

104 lines
2.5 KiB
Plaintext

apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
annotations:
internal.istio.io/gateway-semantics: gateway
internal.istio.io/gateway-service: higress-gateway.higress-system.svc.domain.suffix
internal.istio.io/parents: Gateway/gateway/default.higress-system
internal.istio.io/service-account-name: ""
name: gateway-istio-autogenerated-k8s-gateway-default
namespace: higress-system
spec:
servers:
- hosts:
- '*/*.domain.example'
port:
name: default
number: 80
protocol: HTTP
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
annotations:
internal.istio.io/parents: GRPCRoute/grpc.default
internal.istio.io/route-semantics: gateway
name: higress-system~gateway-istio-autogenerated-k8s-gateway-default~another.domain.example
namespace: default
spec:
gateways:
- higress-system/gateway-istio-autogenerated-k8s-gateway-default
hosts:
- another.domain.example
http:
- headers:
request:
add:
my-added-header: added-value
remove:
- my-removed-header
match:
- headers:
my-header:
exact: some-value
uri:
prefix: /foo/
name: GRPC/default/grpc
route:
- destination:
host: httpbin.default.svc.domain.suffix
port:
number: 80
- match:
- uri:
regex: /[^/]+/bar
name: GRPC/default/grpc
route:
- destination:
host: httpbin.default.svc.domain.suffix
port:
number: 80
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
annotations:
internal.istio.io/parents: GRPCRoute/grpc.default
internal.istio.io/route-semantics: gateway
name: higress-system~gateway-istio-autogenerated-k8s-gateway-default~first.domain.example
namespace: default
spec:
gateways:
- higress-system/gateway-istio-autogenerated-k8s-gateway-default
hosts:
- first.domain.example
http:
- headers:
request:
add:
my-added-header: added-value
remove:
- my-removed-header
match:
- headers:
my-header:
exact: some-value
uri:
prefix: /foo/
name: GRPC/default/grpc
route:
- destination:
host: httpbin.default.svc.domain.suffix
port:
number: 80
- match:
- uri:
regex: /[^/]+/bar
name: GRPC/default/grpc
route:
- destination:
host: httpbin.default.svc.domain.suffix
port:
number: 80
---