From e41ec340d8037ea8b7cd6e27577bb2e07d928363 Mon Sep 17 00:00:00 2001 From: Nathan Coleman Date: Mon, 17 Oct 2022 16:25:46 -0400 Subject: [PATCH] Add example HTTPRoute referencing the MeshService as backendRef --- .../usage/route-to-peered-services.mdx | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/website/content/docs/api-gateway/usage/route-to-peered-services.mdx b/website/content/docs/api-gateway/usage/route-to-peered-services.mdx index fbd979adc8..bc5e0a9d56 100644 --- a/website/content/docs/api-gateway/usage/route-to-peered-services.mdx +++ b/website/content/docs/api-gateway/usage/route-to-peered-services.mdx @@ -37,3 +37,25 @@ spec: peer: dc2 ``` + +A `HTTPRoute` may then reference this `example-mesh-service` as its `backendRef`. + + + +```yaml hideClipboard +apiVersion: gateway.networking.k8s.io/v1beta1 +kind: HTTPRoute +metadata: + name: example-route + ##... +spec: + ... + rules: + - backendRefs: + - group: api-gateway.consul.hashicorp.com + kind: MeshService + name: example-mesh-service + port: 3000 + ... +``` +