From 5c634f3b1a610106e2334c3b8c19848002691d9f Mon Sep 17 00:00:00 2001 From: Eitan Suez Date: Fri, 12 Apr 2024 13:59:50 -0500 Subject: [PATCH] docs: replaces json patch bodies with yaml format (#3180) Signed-off-by: Eitan Suez --- .../tasks/extensibility/envoy-patch-policy.md | 38 +++--- .../en/v1.0.1/tasks/security/backend-tls.md | 106 ++++++---------- .../en/v1.0.1/tasks/security/basic-auth.md | 31 ++--- .../en/v1.0.1/tasks/security/mutual-tls.md | 31 ++--- .../v1.0.1/tasks/security/secure-gateways.md | 120 ++++++++---------- .../v1.0.1/tasks/security/tls-passthrough.md | 22 ++-- .../v1.0.1/tasks/traffic/gateway-address.md | 20 +-- site/content/en/v1.0.1/tasks/traffic/http3.md | 31 ++--- .../traffic/routing-outside-kubernetes.md | 37 +++--- .../en/v1.0.1/tasks/traffic/udp-routing.md | 25 ++-- 10 files changed, 208 insertions(+), 253 deletions(-) diff --git a/site/content/en/v1.0.1/tasks/extensibility/envoy-patch-policy.md b/site/content/en/v1.0.1/tasks/extensibility/envoy-patch-policy.md index 5f24f448969e..884324502f60 100644 --- a/site/content/en/v1.0.1/tasks/extensibility/envoy-patch-policy.md +++ b/site/content/en/v1.0.1/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/v1.0.1/tasks/traffic/http3.md b/site/content/en/v1.0.1/tasks/traffic/http3.md index d1f526062e0d..0c1dcba36761 100644 --- a/site/content/en/v1.0.1/tasks/traffic/http3.md +++ b/site/content/en/v1.0.1/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/v1.0.1/tasks/traffic/routing-outside-kubernetes.md b/site/content/en/v1.0.1/tasks/traffic/routing-outside-kubernetes.md index 6be1853570f3..f64dfd5ac9fb 100644 --- a/site/content/en/v1.0.1/tasks/traffic/routing-outside-kubernetes.md +++ b/site/content/en/v1.0.1/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 <