Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
Signed-off-by: Huabing Zhao <[email protected]>
  • Loading branch information
zhaohuabing committed Jan 18, 2025
1 parent 9e4d88c commit 4a74b5e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ curl $GATEWAY_HOST \ │ │ │ │
kubectl apply -f manifests
```

Wait for the pods to be ready:

```bash
kubectl wait --for=condition=Available --timeout=5m -n envoy-gateway-system \
deployment -l gateway.envoyproxy.io/owning-gateway-name=ext-auth-poc
```

3. Test the POC: Run the following commands to test the POC:

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

You can also port-forward the Gateway to localhost if load balancer is not available:

```bash
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}')
kubectl -n envoy-gateway-system port-forward service/${ENVOY_SERVICE} 8080:80 &
export GATEWAY_HOST=127.0.0.1:8080
```

Curl the Gateway with the authorization header "Bearer token1", which is the bearer token for user1:

```bash
Expand Down

0 comments on commit 4a74b5e

Please sign in to comment.