k8s/helm/setup/longhorn/k8s-ingress.yaml

37 lines
689 B
YAML
Raw Normal View History

2022-12-28 23:06:22 +00:00
---
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
...