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

265 lines
8.9 KiB
Plaintext

apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
annotations:
internal.istio.io/gateway-semantics: gateway
internal.istio.io/gateway-service: isolation-istio.gateway-conformance-infra.svc.domain.suffix
internal.istio.io/parents: Gateway/isolation/abc-foo-example-com.gateway-conformance-infra
name: isolation-istio-autogenerated-k8s-gateway-abc-foo-example-com
namespace: gateway-conformance-infra
spec:
servers:
- hosts:
- '*/abc.foo.example.com'
port:
name: default
number: 80
protocol: HTTP
---
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
annotations:
internal.istio.io/gateway-semantics: gateway
internal.istio.io/gateway-service: isolation-istio.gateway-conformance-infra.svc.domain.suffix
internal.istio.io/parents: Gateway/isolation/empty-hostname.gateway-conformance-infra
name: isolation-istio-autogenerated-k8s-gateway-empty-hostname
namespace: gateway-conformance-infra
spec:
servers:
- hosts:
- '*/*'
port:
name: default
number: 80
protocol: HTTP
---
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
annotations:
internal.istio.io/gateway-semantics: gateway
internal.istio.io/gateway-service: isolation-istio.gateway-conformance-infra.svc.domain.suffix
internal.istio.io/parents: Gateway/isolation/wildcard-example-com.gateway-conformance-infra
name: isolation-istio-autogenerated-k8s-gateway-wildcard-example-com
namespace: gateway-conformance-infra
spec:
servers:
- hosts:
- '*/*.example.com'
port:
name: default
number: 80
protocol: HTTP
---
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
annotations:
internal.istio.io/gateway-semantics: gateway
internal.istio.io/gateway-service: isolation-istio.gateway-conformance-infra.svc.domain.suffix
internal.istio.io/parents: Gateway/isolation/wildcard-foo-example-com.gateway-conformance-infra
name: isolation-istio-autogenerated-k8s-gateway-wildcard-foo-example-com
namespace: gateway-conformance-infra
spec:
servers:
- hosts:
- '*/*.foo.example.com'
port:
name: default
number: 80
protocol: HTTP
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
annotations:
internal.istio.io/parents: HTTPRoute/attaches-to-abc-foo-example-com-with-hostname-intersection.gateway-conformance-infra
internal.istio.io/route-semantics: gateway
name: gateway-conformance-infra~isolation-istio-autogenerated-k8s-gateway-abc-foo-example-com~*.example.com
namespace: gateway-conformance-infra
spec:
gateways:
- gateway-conformance-infra/isolation-istio-autogenerated-k8s-gateway-abc-foo-example-com
hosts:
- '*.example.com'
http:
- match:
- uri:
prefix: /abc-foo-example-com
name: gateway-conformance-infra/attaches-to-abc-foo-example-com-with-hostname-intersection
route:
- destination:
host: infra-backend-v1.gateway-conformance-infra.svc.domain.suffix
port:
number: 8080
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
annotations:
internal.istio.io/parents: HTTPRoute/attaches-to-abc-foo-example-com-with-hostname-intersection.gateway-conformance-infra
internal.istio.io/route-semantics: gateway
name: gateway-conformance-infra~isolation-istio-autogenerated-k8s-gateway-abc-foo-example-com~*.foo.example.com
namespace: gateway-conformance-infra
spec:
gateways:
- gateway-conformance-infra/isolation-istio-autogenerated-k8s-gateway-abc-foo-example-com
hosts:
- '*.foo.example.com'
http:
- match:
- uri:
prefix: /abc-foo-example-com
name: gateway-conformance-infra/attaches-to-abc-foo-example-com-with-hostname-intersection
route:
- destination:
host: infra-backend-v1.gateway-conformance-infra.svc.domain.suffix
port:
number: 8080
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
annotations:
internal.istio.io/parents: HTTPRoute/attaches-to-abc-foo-example-com-with-hostname-intersection.gateway-conformance-infra
internal.istio.io/route-semantics: gateway
name: gateway-conformance-infra~isolation-istio-autogenerated-k8s-gateway-abc-foo-example-com~abc.foo.example.com
namespace: gateway-conformance-infra
spec:
gateways:
- gateway-conformance-infra/isolation-istio-autogenerated-k8s-gateway-abc-foo-example-com
hosts:
- abc.foo.example.com
http:
- match:
- uri:
prefix: /abc-foo-example-com
name: gateway-conformance-infra/attaches-to-abc-foo-example-com-with-hostname-intersection
route:
- destination:
host: infra-backend-v1.gateway-conformance-infra.svc.domain.suffix
port:
number: 8080
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
annotations:
internal.istio.io/parents: HTTPRoute/attaches-to-abc-foo-example-com-with-hostname-intersection.gateway-conformance-infra
internal.istio.io/route-semantics: gateway
name: gateway-conformance-infra~isolation-istio-autogenerated-k8s-gateway-abc-foo-example-com~bar.com
namespace: gateway-conformance-infra
spec:
gateways:
- gateway-conformance-infra/isolation-istio-autogenerated-k8s-gateway-abc-foo-example-com
hosts:
- bar.com
http:
- match:
- uri:
prefix: /abc-foo-example-com
name: gateway-conformance-infra/attaches-to-abc-foo-example-com-with-hostname-intersection
route:
- destination:
host: infra-backend-v1.gateway-conformance-infra.svc.domain.suffix
port:
number: 8080
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
annotations:
internal.istio.io/parents: HTTPRoute/attaches-to-empty-hostname-with-hostname-intersection.gateway-conformance-infra
internal.istio.io/route-semantics: gateway
name: gateway-conformance-infra~isolation-istio-autogenerated-k8s-gateway-empty-hostname~bar.com
namespace: gateway-conformance-infra
spec:
gateways:
- gateway-conformance-infra/isolation-istio-autogenerated-k8s-gateway-empty-hostname
hosts:
- bar.com
http:
- match:
- uri:
prefix: /empty-hostname
name: gateway-conformance-infra/attaches-to-empty-hostname-with-hostname-intersection
route:
- destination:
host: infra-backend-v1.gateway-conformance-infra.svc.domain.suffix
port:
number: 8080
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
annotations:
internal.istio.io/parents: HTTPRoute/attaches-to-wildcard-example-com-with-hostname-intersection.gateway-conformance-infra
internal.istio.io/route-semantics: gateway
name: gateway-conformance-infra~isolation-istio-autogenerated-k8s-gateway-wildcard-example-com~*.example.com
namespace: gateway-conformance-infra
spec:
gateways:
- gateway-conformance-infra/isolation-istio-autogenerated-k8s-gateway-wildcard-example-com
hosts:
- '*.example.com'
http:
- match:
- uri:
prefix: /wildcard-example-com
name: gateway-conformance-infra/attaches-to-wildcard-example-com-with-hostname-intersection
route:
- destination:
host: infra-backend-v1.gateway-conformance-infra.svc.domain.suffix
port:
number: 8080
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
annotations:
internal.istio.io/parents: HTTPRoute/attaches-to-wildcard-foo-example-com-with-hostname-intersection.gateway-conformance-infra
internal.istio.io/route-semantics: gateway
name: gateway-conformance-infra~isolation-istio-autogenerated-k8s-gateway-wildcard-foo-example-com~*.example.com
namespace: gateway-conformance-infra
spec:
gateways:
- gateway-conformance-infra/isolation-istio-autogenerated-k8s-gateway-wildcard-foo-example-com
hosts:
- '*.example.com'
http:
- match:
- uri:
prefix: /wildcard-foo-example-com
name: gateway-conformance-infra/attaches-to-wildcard-foo-example-com-with-hostname-intersection
route:
- destination:
host: infra-backend-v1.gateway-conformance-infra.svc.domain.suffix
port:
number: 8080
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
annotations:
internal.istio.io/parents: HTTPRoute/attaches-to-wildcard-foo-example-com-with-hostname-intersection.gateway-conformance-infra
internal.istio.io/route-semantics: gateway
name: gateway-conformance-infra~isolation-istio-autogenerated-k8s-gateway-wildcard-foo-example-com~*.foo.example.com
namespace: gateway-conformance-infra
spec:
gateways:
- gateway-conformance-infra/isolation-istio-autogenerated-k8s-gateway-wildcard-foo-example-com
hosts:
- '*.foo.example.com'
http:
- match:
- uri:
prefix: /wildcard-foo-example-com
name: gateway-conformance-infra/attaches-to-wildcard-foo-example-com-with-hostname-intersection
route:
- destination:
host: infra-backend-v1.gateway-conformance-infra.svc.domain.suffix
port:
number: 8080
---