Skip to content

Commit 4a74b5e

Browse files
committed
update README
Signed-off-by: Huabing Zhao <[email protected]>
1 parent 9e4d88c commit 4a74b5e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@ curl $GATEWAY_HOST \ │ │ │ │
6262
kubectl apply -f manifests
6363
```
6464

65+
Wait for the pods to be ready:
66+
67+
```bash
68+
kubectl wait --for=condition=Available --timeout=5m -n envoy-gateway-system \
69+
deployment -l gateway.envoyproxy.io/owning-gateway-name=ext-auth-poc
70+
```
71+
6572
3. Test the POC: Run the following commands to test the POC:
6673

6774
Get the Gateway address:
@@ -70,6 +77,14 @@ Get the Gateway address:
7077
export GATEWAY_HOST=$(kubectl get gateway/ext-auth-poc -o jsonpath='{.status.addresses[0].value}')
7178
```
7279

80+
You can also port-forward the Gateway to localhost if load balancer is not available:
81+
82+
```bash
83+
export ENVOY_SERVICE=$(kubectl get svc -n envoy-gateway-system --selector=gateway.envoyproxy.io/owning-gateway-name=ext-auth-poc -o jsonpath='{.items[0].metadata.name}')
84+
kubectl -n envoy-gateway-system port-forward service/${ENVOY_SERVICE} 8080:80 &
85+
export GATEWAY_HOST=127.0.0.1:8080
86+
```
87+
7388
Curl the Gateway with the authorization header "Bearer token1", which is the bearer token for user1:
7489

7590
```bash

0 commit comments

Comments
 (0)