From e1b3cfc9a9bedcace92ae6deaa9d89c5131c53b2 Mon Sep 17 00:00:00 2001 From: boruszak Date: Wed, 15 Jun 2022 13:55:53 -0500 Subject: [PATCH] peering_token.json addition --- .../cluster-peering/create-manage-peering.mdx | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/website/content/docs/connect/cluster-peering/create-manage-peering.mdx b/website/content/docs/connect/cluster-peering/create-manage-peering.mdx index b09f3d2211..18bfc8a9fd 100644 --- a/website/content/docs/connect/cluster-peering/create-manage-peering.mdx +++ b/website/content/docs/connect/cluster-peering/create-manage-peering.mdx @@ -32,6 +32,18 @@ $ curl -X POST --data '{"PeerName":"cluster-02"}' http://localhost:8500/v1/peeri The CLI outputs the peering token, which is an encoded string of alphanumeric characters and symbols. +Create a JSON file that contains the first cluster's name and the peering token. + + + +```json +{ + "PeerName": "cluster-01", + "PeeringToken": "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbiIsImF1ZCI6IlNvbHIifQ.5T7L_L1MPfQ_5FjKGa1fTPqrzwK4bNSM812nW6oyjb8" +} +``` + + ## Establish a connection between clusters @@ -53,7 +65,7 @@ First, create a configuration entry and specify the `Kind` as `“exported-servi -```shell-session +```hcl Kind = "exported-services" Partition = "partition-name" @@ -91,14 +103,14 @@ First, create a configuration entry and specify the `Kind` as `“service-intent -```shell-session +```hcl Kind = "service-intentions" Name = "frontend-service" Partition = "partition-name" Sources = [ { - Name = "backend-service" + Name = "backend-service" Peer = "cluster-02" Action = "allow" }