Backport of docs: Update ext-authz documentation for kubernetes into release/1.16.x (#18282)
backport of commit 24515790d18c28fcace5da775bf95bbf94fa067e Co-authored-by: Gautam <gautambaghel93@gmail.com>
This commit is contained in:
parent
74e6e8f66a
commit
d187f13322
|
@ -83,9 +83,13 @@ EnvoyExtensions = [
|
|||
<CodeBlockConfig filename="api-auth-service-defaults">
|
||||
|
||||
```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
|
||||
```
|
||||
</CodeBlockConfig>
|
||||
</Tab>
|
||||
|
@ -140,7 +145,7 @@ $ consul config write api-auth-service-defaults.json
|
|||
<Tab heading="Kubernetes" group="kubernetes">
|
||||
|
||||
```shell-session
|
||||
$ kubectl apply api-auth-service-defaults.yaml
|
||||
$ kubectl apply -f api-auth-service-defaults.yaml
|
||||
```
|
||||
|
||||
</Tab>
|
||||
|
|
Loading…
Reference in New Issue