mirror of
https://github.com/gwg313/homelab-gitops.git
synced 2026-06-05 20:50:58 +00:00
37 lines
803 B
YAML
37 lines
803 B
YAML
apiVersion: gateway.networking.k8s.io/v1
|
|
kind: HTTPRoute
|
|
metadata:
|
|
name: audiobookshelf
|
|
namespace: audiobookshelf
|
|
spec:
|
|
parentRefs:
|
|
- name: shared-edge-gateway
|
|
namespace: cilium-ingress
|
|
|
|
hostnames:
|
|
- "audiobooks.local.gwg313.xyz"
|
|
- "audiobooks.gwg313.xyz"
|
|
- "audiobooks.zerotier.gwg313.xyz"
|
|
rules:
|
|
- matches:
|
|
- path:
|
|
type: PathPrefix
|
|
value: /
|
|
backendRefs:
|
|
- name: audiobookshelf
|
|
port: 80
|
|
---
|
|
apiVersion: gateway.networking.k8s.io/v1beta1
|
|
kind: ReferenceGrant
|
|
metadata:
|
|
name: allow-gateway-to-audiobookshelf
|
|
namespace: audiobookshelf
|
|
spec:
|
|
from:
|
|
- group: gateway.networking.k8s.io
|
|
kind: Gateway
|
|
namespace: cilium-ingress
|
|
to:
|
|
- group: ""
|
|
kind: Service
|
|
name: audiobookshelf
|