File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,13 @@ curl $GATEWAY_HOST \ │ │ │ │
62
62
kubectl apply -f manifests
63
63
```
64
64
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
+
65
72
3 . Test the POC: Run the following commands to test the POC:
66
73
67
74
Get the Gateway address:
@@ -70,6 +77,14 @@ Get the Gateway address:
70
77
export GATEWAY_HOST=$( kubectl get gateway/ext-auth-poc -o jsonpath=' {.status.addresses[0].value}' )
71
78
```
72
79
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
+
73
88
Curl the Gateway with the authorization header "Bearer token1", which is the bearer token for user1:
74
89
75
90
``` bash
You can’t perform that action at this time.
0 commit comments