From 02cf17758d8788ef8f955f54abf4c399f2678005 Mon Sep 17 00:00:00 2001 From: Gautam Date: Tue, 25 Jul 2023 17:38:39 -0700 Subject: [PATCH] docs: Update ext-authz documentation for kubernetes (#18281) Update ext-authz documentation for kubernetes --- .../proxies/envoy-extensions/usage/ext-authz.mdx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/website/content/docs/connect/proxies/envoy-extensions/usage/ext-authz.mdx b/website/content/docs/connect/proxies/envoy-extensions/usage/ext-authz.mdx index 30615d3b054f..afec572bee8a 100644 --- a/website/content/docs/connect/proxies/envoy-extensions/usage/ext-authz.mdx +++ b/website/content/docs/connect/proxies/envoy-extensions/usage/ext-authz.mdx @@ -83,9 +83,13 @@ EnvoyExtensions = [ ```yaml +apiVersion: consul.hashicorp.com/v1alpha1 kind: ServiceDefaults -name: api -envoyExtensions: +metadata: + name: api + namespace: default +spec: + envoyExtensions: - name: builtin/ext-authz arguments: proxyType: connect-proxy @@ -94,6 +98,7 @@ envoyExtensions: target: service: name: authz + namespace: authz ``` @@ -140,7 +145,7 @@ $ consul config write api-auth-service-defaults.json ```shell-session -$ kubectl apply api-auth-service-defaults.yaml +$ kubectl apply -f api-auth-service-defaults.yaml ```