From 968f2b8c93e066ee4476939c462039e2cd8e0553 Mon Sep 17 00:00:00 2001 From: Eitan Suez Date: Fri, 12 Apr 2024 14:27:23 -0500 Subject: [PATCH] docs: replaces json patch bodies with yaml format, in 'latest' version (#3180) Signed-off-by: Eitan Suez --- .../tasks/extensibility/envoy-patch-policy.md | 38 +++--- .../en/latest/tasks/security/backend-tls.md | 106 ++++++---------- .../en/latest/tasks/security/basic-auth.md | 31 ++--- .../en/latest/tasks/security/mutual-tls.md | 31 ++--- .../latest/tasks/security/secure-gateways.md | 120 ++++++++---------- .../latest/tasks/security/tls-passthrough.md | 22 ++-- .../latest/tasks/traffic/gateway-address.md | 20 +-- site/content/en/latest/tasks/traffic/http3.md | 31 ++--- .../traffic/routing-outside-kubernetes.md | 37 +++--- .../en/latest/tasks/traffic/udp-routing.md | 25 ++-- .../tasks/extensibility/envoy-patch-policy.md | 4 +- .../en/v1.0.1/tasks/security/backend-tls.md | 4 +- .../en/v1.0.1/tasks/security/basic-auth.md | 8 +- .../en/v1.0.1/tasks/security/mutual-tls.md | 6 +- .../v1.0.1/tasks/security/secure-gateways.md | 18 +-- .../v1.0.1/tasks/security/tls-passthrough.md | 2 +- site/content/en/v1.0.1/tasks/traffic/http3.md | 4 +- .../traffic/routing-outside-kubernetes.md | 2 +- .../en/v1.0.1/tasks/traffic/udp-routing.md | 4 +- 19 files changed, 234 insertions(+), 279 deletions(-) diff --git a/site/content/en/latest/tasks/extensibility/envoy-patch-policy.md b/site/content/en/latest/tasks/extensibility/envoy-patch-policy.md index 94d71fc7c777..83b95065a825 100644 --- a/site/content/en/latest/tasks/extensibility/envoy-patch-policy.md +++ b/site/content/en/latest/tasks/extensibility/envoy-patch-policy.md @@ -63,10 +63,10 @@ kubectl rollout restart deployment envoy-gateway -n envoy-gateway-system ### Customize Response -* Lets use EnvoyProxy's [Local Reply Modification][] feature to return a custom response back to the client when +* Use EnvoyProxy's [Local Reply Modification][] feature to return a custom response back to the client when the status code is `404` -* Lets apply the configuration +* Apply the configuration ```shell cat < 18000/TCP 15m diff --git a/site/content/en/latest/tasks/traffic/http3.md b/site/content/en/latest/tasks/traffic/http3.md index 3b83bc7def5e..702a3e3716fc 100644 --- a/site/content/en/latest/tasks/traffic/http3.md +++ b/site/content/en/latest/tasks/traffic/http3.md @@ -41,23 +41,20 @@ Update the Gateway from the Quickstart to include an HTTPS listener that listens `example-cert` Secret: ```shell -kubectl patch gateway eg --type=json --patch '[{ - "op": "add", - "path": "/spec/listeners/-", - "value": { - "name": "https", - "protocol": "HTTPS", - "port": 443, - "tls": { - "mode": "Terminate", - "certificateRefs": [{ - "kind": "Secret", - "group": "", - "name": "example-cert", - }], - }, - }, -}]' +kubectl patch gateway eg --type=json --patch ' + - op: add + path: /spec/listeners/- + value: + name: https + protocol: HTTPS + port: 443 + tls: + mode: Terminate + certificateRefs: + - kind: Secret + group: "" + name: example-cert + ' ``` Apply the following ClientTrafficPolicy to enable HTTP3 diff --git a/site/content/en/latest/tasks/traffic/routing-outside-kubernetes.md b/site/content/en/latest/tasks/traffic/routing-outside-kubernetes.md index 95b91eaa0e1a..e43052073cb0 100644 --- a/site/content/en/latest/tasks/traffic/routing-outside-kubernetes.md +++ b/site/content/en/latest/tasks/traffic/routing-outside-kubernetes.md @@ -3,7 +3,7 @@ title: "Routing outside Kubernetes" --- Routing to endpoints outside the Kubernetes cluster where Envoy Gateway and its corresponding Envoy Proxy fleet is -running is a common use. This can be achieved by defining FQDN addresses in a [EndpointSlice][]. +running is a common use case. This can be achieved by defining FQDN addresses in a [EndpointSlice][]. ## Installation @@ -12,7 +12,7 @@ Before proceeding, you should be able to query the example backend using HTTP. ## Configuration -* Lets define a Service and EndpointSlice that represents https://httpbin.org +Define a Service and EndpointSlice that represents https://httpbin.org ```shell cat <