37 lines
689 B
YAML
37 lines
689 B
YAML
---
|
|
apiVersion: gateway.networking.k8s.io/v1beta1
|
|
kind: Gateway
|
|
metadata:
|
|
name: longhorn-gateway
|
|
namespace: longhorn-system
|
|
spec:
|
|
gatewayClassName: istio
|
|
listeners:
|
|
- name: http
|
|
hostname: "longhorn.teapot.masked.name"
|
|
port: 80
|
|
protocol: HTTP
|
|
allowedRoutes:
|
|
namespaces:
|
|
from: Same
|
|
...
|
|
---
|
|
apiVersion: gateway.networking.k8s.io/v1beta1
|
|
kind: HTTPRoute
|
|
metadata:
|
|
name: longhorn-frontend
|
|
namespace: longhorn-system
|
|
spec:
|
|
parentRefs:
|
|
- name: longhorn-gateway
|
|
hostnames: ["longhorn.teapot.masked.name"]
|
|
rules:
|
|
- matches:
|
|
- path:
|
|
type: PathPrefix
|
|
value: /
|
|
backendRefs:
|
|
- name: longhorn-frontend
|
|
port: 80
|
|
...
|