Skip to content

Commit c9c7340

Browse files
authored
docs: update port to 8080 to avoid sudo (#7549)
update port to 8080 to avoid sudo Signed-off-by: Huabing Zhao <[email protected]>
1 parent 7cb5f72 commit c9c7340

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

site/content/en/latest/tasks/security/backend-tls.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,14 +297,14 @@ export ENVOY_SERVICE=$(kubectl get svc -n envoy-gateway-system --selector=gatewa
297297
Port forward to the Envoy service:
298298

299299
```shell
300-
kubectl -n envoy-gateway-system port-forward service/${ENVOY_SERVICE} 80:80 &
300+
kubectl -n envoy-gateway-system port-forward service/${ENVOY_SERVICE} 8080:80 &
301301
```
302302

303303
Query the TLS-enabled backend through Envoy proxy:
304304

305305
```shell
306-
curl -v -HHost:www.example.com --resolve "www.example.com:80:127.0.0.1" \
307-
http://www.example.com:80/get
306+
curl -v -HHost:www.example.com --resolve "www.example.com:8080:127.0.0.1" \
307+
http://www.example.com:8080/get
308308
```
309309

310310
Inspect the output and see that the response contains the details of the TLS handshake between Envoy and the backend:

site/content/en/v1.6/tasks/security/backend-tls.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,14 +297,14 @@ export ENVOY_SERVICE=$(kubectl get svc -n envoy-gateway-system --selector=gatewa
297297
Port forward to the Envoy service:
298298

299299
```shell
300-
kubectl -n envoy-gateway-system port-forward service/${ENVOY_SERVICE} 80:80 &
300+
kubectl -n envoy-gateway-system port-forward service/${ENVOY_SERVICE} 8080:80 &
301301
```
302302

303303
Query the TLS-enabled backend through Envoy proxy:
304304

305305
```shell
306-
curl -v -HHost:www.example.com --resolve "www.example.com:80:127.0.0.1" \
307-
http://www.example.com:80/get
306+
curl -v -HHost:www.example.com --resolve "www.example.com:8080:127.0.0.1" \
307+
http://www.example.com:8080/get
308308
```
309309

310310
Inspect the output and see that the response contains the details of the TLS handshake between Envoy and the backend:

0 commit comments

Comments
 (0)