docs: Update ext-authz documentation for kubernetes (#18281)

Update ext-authz documentation for kubernetes
This commit is contained in:
Gautam 2023-07-25 17:38:39 -07:00 committed by GitHub
parent 9b540e29bc
commit 02cf17758d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 3 deletions

View File

@ -83,8 +83,12 @@ EnvoyExtensions = [
<CodeBlockConfig filename="api-auth-service-defaults"> <CodeBlockConfig filename="api-auth-service-defaults">
```yaml ```yaml
apiVersion: consul.hashicorp.com/v1alpha1
kind: ServiceDefaults kind: ServiceDefaults
metadata:
name: api name: api
namespace: default
spec:
envoyExtensions: envoyExtensions:
- name: builtin/ext-authz - name: builtin/ext-authz
arguments: arguments:
@ -94,6 +98,7 @@ envoyExtensions:
target: target:
service: service:
name: authz name: authz
namespace: authz
``` ```
</CodeBlockConfig> </CodeBlockConfig>
</Tab> </Tab>
@ -140,7 +145,7 @@ $ consul config write api-auth-service-defaults.json
<Tab heading="Kubernetes" group="kubernetes"> <Tab heading="Kubernetes" group="kubernetes">
```shell-session ```shell-session
$ kubectl apply api-auth-service-defaults.yaml $ kubectl apply -f api-auth-service-defaults.yaml
``` ```
</Tab> </Tab>