mirror of
https://github.com/FairwindsOps/polaris.git
synced 2026-09-05 22:27:15 +00:00
29 lines
492 B
YAML
29 lines
492 B
YAML
apiVersion: gateway.networking.k8s.io/v1
|
|
kind: HTTPRoute
|
|
metadata:
|
|
name: shared-api
|
|
namespace: app
|
|
spec:
|
|
hostnames:
|
|
- app.example.com
|
|
rules:
|
|
- backendRefs:
|
|
- name: api
|
|
namespace: shared
|
|
port: 8080
|
|
---
|
|
apiVersion: gateway.networking.k8s.io/v1beta1
|
|
kind: ReferenceGrant
|
|
metadata:
|
|
name: allow-app-route
|
|
namespace: shared
|
|
spec:
|
|
from:
|
|
- group: gateway.networking.k8s.io
|
|
kind: HTTPRoute
|
|
namespace: app
|
|
to:
|
|
- group: ""
|
|
kind: Service
|
|
name: api
|