blob: d9b86d0ab60a0fb47a83624f71af2a7d25db7778 [file] [log] [blame]
apiVersion: gateway.networking.k8s.io/v1alpha2
kind: GatewayClass
metadata:
name: istio
spec:
controllerName: istio.io/gateway-controller
---
apiVersion: gateway.networking.k8s.io/v1alpha2
kind: Gateway
metadata:
name: gateway
namespace: dubbo-system
spec:
addresses:
- value: istio-ingressgateway
type: Hostname
gatewayClassName: istio
listeners:
- name: default
hostname: "*.domain.example"
port: 80
protocol: HTTP
allowedRoutes:
namespaces:
from: All
---
apiVersion: gateway.networking.k8s.io/v1alpha2
kind: Gateway
metadata:
name: invalid-service
namespace: dubbo-system
spec:
gatewayClassName: istio
listeners:
- name: default
hostname: "*.example"
port: 80
protocol: HTTP
addresses:
- value: fake-service.com
type: Hostname
---
apiVersion: gateway.networking.k8s.io/v1alpha2
kind: Gateway
metadata:
name: target-port-reference
namespace: dubbo-system
spec:
addresses:
- value: istio-ingressgateway
type: Hostname
gatewayClassName: istio
listeners:
- name: default
hostname: "*.example"
port: 8080 # Test service has port 80 with targetPort 8080
protocol: HTTP
---
apiVersion: gateway.networking.k8s.io/v1alpha2
kind: Gateway
metadata:
name: invalid-gateway-address
namespace: invalid-gateway-address
spec:
gatewayClassName: istio
addresses:
- value: 1.2.3.4
type: NamedAddress
listeners:
- name: default
hostname: "*.domain.example"
port: 80
protocol: HTTP
---
apiVersion: gateway.networking.k8s.io/v1alpha2
kind: Gateway
metadata:
name: invalid-tls
namespace: dubbo-system
spec:
addresses:
- value: istio-ingressgateway
type: Hostname
gatewayClassName: istio
listeners:
- name: default
hostname: "domain.example"
port: 34000
protocol: HTTPS
tls:
mode: Terminate
certificateRefs:
- name: my-cert-http
group: core
kind: unknown
---
apiVersion: gateway.networking.k8s.io/v1alpha2
kind: HTTPRoute
metadata:
name: invalid-filter
namespace: default
spec:
hostnames: ["first.domain.example"]
parentRefs:
- name: gateway
namespace: dubbo-system
rules:
- filters:
- type: ExtensionRef
backendRefs:
- name: httpbin
port: 80
---
apiVersion: gateway.networking.k8s.io/v1alpha2
kind: HTTPRoute
metadata:
name: invalid-backendRef
namespace: default
spec:
parentRefs:
- name: gateway
namespace: dubbo-system
hostnames: ["second.domain.example"]
rules:
- backendRefs:
- name: httpbin
kind: GcsBucket
---
apiVersion: gateway.networking.k8s.io/v1alpha2
kind: HTTPRoute
metadata:
name: invalid-mirror
namespace: default
spec:
parentRefs:
- name: gateway
namespace: dubbo-system
rules:
- filters:
- type: RequestMirror
requestMirror:
backendRef:
kind: no-support
name: httpbin-mirror
port: 80
backendRefs:
- name: httpbin
port: 80