From 58806aa0a8f3bd5097c40b7a48f4aa2fc5d1b9f7 Mon Sep 17 00:00:00 2001 From: hc-github-team-consul-core Date: Wed, 24 May 2023 12:05:01 -0400 Subject: [PATCH] backport of commit a6322d8c949204f1d6f6538c1327f96dcef2eb9f (#17444) Co-authored-by: Luke Kysow <1034429+lkysow@users.noreply.github.com> --- .../config-entries/service-intentions.mdx | 33 +++++++++++-------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/website/content/docs/connect/config-entries/service-intentions.mdx b/website/content/docs/connect/config-entries/service-intentions.mdx index 40fc94c0bb..321b7f1605 100644 --- a/website/content/docs/connect/config-entries/service-intentions.mdx +++ b/website/content/docs/connect/config-entries/service-intentions.mdx @@ -816,6 +816,8 @@ Sources = [ ```yaml apiVersion: consul.hashicorp.com/v1alpha1 kind: ServiceIntentions +metadata: + name: db spec: destination: name: db @@ -865,6 +867,8 @@ Sources = [ ```yaml apiVersion: consul.hashicorp.com/v1alpha1 kind: ServiceIntentions +metadata: + name: web-deny-all spec: destination: name: * @@ -908,6 +912,8 @@ Sources = [ ```yaml apiVersion: consul.hashicorp.com/v1alpha1 kind: ServiceIntentions +metadata: + name: db spec: destination: name: db @@ -1251,20 +1257,19 @@ When using cluster peering connections, intentions secure your deployments with ``` ```yaml - ```yaml - apiVersion: consul.hashicorp.com/v1alpha1 - kind: ServiceIntentions - metadata: - name: backend-deny - spec: - destination: - name: backend - sources: - - name: "*" - action: deny - - name: frontend - action: allow - peer: cluster-01 ## The peer of the source service + apiVersion: consul.hashicorp.com/v1alpha1 + kind: ServiceIntentions + metadata: + name: backend-deny + spec: + destination: + name: backend + sources: + - name: "*" + action: deny + - name: frontend + action: allow + peer: cluster-01 ## The peer of the source service ``` ```json