Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,34 @@ gateways:
allowedRoutes:
namespaces:
from: All
- apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
namespace: default
name: gateway-2
spec:
gatewayClassName: envoy-gateway-class
listeners:
- name: http
protocol: HTTP
port: 80
allowedRoutes:
namespaces:
from: All
- apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
namespace: test-ns
name: gateway-3
spec:
gatewayClassName: envoy-gateway-class
listeners:
- name: http
protocol: HTTP
port: 80
allowedRoutes:
namespaces:
from: All
httpRoutes:
- apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
Expand All @@ -21,12 +49,101 @@ httpRoutes:
name: httproute-1
spec:
parentRefs:
- namespace: envoy-gateway
- namespace: default
name: gateway-1
rules:
- matches:
- path:
value: "/"
backendRefs:
- name: service-1
namespace: default
port: 8080
- apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
namespace: default
name: httproute-2
spec:
parentRefs:
- namespace: default
name: gateway-2
rules:
- matches:
- path:
value: "/"
backendRefs:
- name: service-2
namespace: default
port: 8080
- apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
namespace: test-ns
name: httproute-3
spec:
parentRefs:
- namespace: test-ns
name: gateway-3
rules:
- matches:
- path:
value: "/"
backendRefs:
- name: service-3
namespace: test-ns
port: 8080
services:
- apiVersion: v1
kind: Service
metadata:
namespace: default
name: service-1
spec:
clusterIP: 1.1.1.1
ports:
- name: http
port: 8080
protocol: TCP
targetPort: 8080
- apiVersion: v1
kind: Service
metadata:
namespace: default
name: service-2
spec:
clusterIP: 2.2.2.2
ports:
- name: http
port: 8080
protocol: TCP
targetPort: 8080
- apiVersion: v1
kind: Service
metadata:
namespace: default
name: service-2
spec:
clusterIP: 2.2.2.2
ports:
- name: http
port: 8080
protocol: TCP
targetPort: 8080
- apiVersion: v1
kind: Service
metadata:
namespace: test-ns
name: service-3
spec:
clusterIP: 2.2.2.2
ports:
- name: http
port: 8080
protocol: TCP
targetPort: 8080
namespaces:
- apiVersion: v1
kind: Namespace
metadata:
name: test-ns
Loading