30 lines
601 B
YAML
30 lines
601 B
YAML
|
|
apiVersion: gateway.networking.k8s.io/v1
|
||
|
|
kind: HTTPRoute
|
||
|
|
metadata:
|
||
|
|
name: forgejo
|
||
|
|
namespace: forgejo
|
||
|
|
spec:
|
||
|
|
parentRefs:
|
||
|
|
- name: public
|
||
|
|
namespace: gateway-system
|
||
|
|
hostnames:
|
||
|
|
- forgejo.siriusdevops.com
|
||
|
|
rules:
|
||
|
|
- backendRefs:
|
||
|
|
- name: forgejo
|
||
|
|
port: 3000
|
||
|
|
---
|
||
|
|
apiVersion: gateway.networking.k8s.io/v1beta1
|
||
|
|
kind: ReferenceGrant
|
||
|
|
metadata:
|
||
|
|
name: forgejo
|
||
|
|
namespace: gateway-system
|
||
|
|
spec:
|
||
|
|
from:
|
||
|
|
- group: gateway.networking.k8s.io
|
||
|
|
kind: HTTPRoute
|
||
|
|
namespace: forgejo
|
||
|
|
to:
|
||
|
|
- group: gateway.networking.k8s.io
|
||
|
|
kind: Gateway
|
||
|
|
name: public
|