Skip to content

Commit

Permalink
Add ReferencePolicy to allow cross-namespace routing (#55)
Browse files Browse the repository at this point in the history
* Add ReferencePolicy to allow cross-namespace routing

* Remove namespace designation, update name

Other resources being deployed to not explicitly specify the namespace that they should be deployed into. This change updates the ReferencePolicy to behave the same way.
  • Loading branch information
nathancoleman authored Apr 14, 2022
1 parent 6c1d21a commit 7a3601e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions api-gateway/two-services/referencepolicy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: gateway.networking.k8s.io/v1alpha2
kind: ReferencePolicy
metadata:
name: example-reference-policy
spec:
from:
- group: gateway.networking.k8s.io
kind: HTTPRoute
namespace: consul # Must match the namespace that api-gw/routes.yaml is deployed into
to:
- group: ""
kind: Service

0 comments on commit 7a3601e

Please sign in to comment.