Skip to content

Commit 1158746

Browse files
committed
refactor: include gateway creation as part of guide
Signed-off-by: KevFan <[email protected]>
1 parent eb4703f commit 1158746

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

doc/user-guides/auth/authzed.md

+22
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,28 @@ This guide explains how to configure permission requests for a Google Zanzibar-b
66

77
You have installed Kuadrant in a [kubernetes](https://docs.kuadrant.io/latest/kuadrant-operator/doc/install/install-kubernetes/) or [OpenShift](https://docs.kuadrant.io/latest/kuadrant-operator/doc/install/install-openshift/) cluster.
88

9+
### Create Gateway
10+
Create a `Gateway` resource for this guide:
11+
12+
```sh
13+
kubectl apply -f -<<EOF
14+
apiVersion: gateway.networking.k8s.io/v1
15+
kind: Gateway
16+
metadata:
17+
name: kuadrant-ingressgateway
18+
spec:
19+
gatewayClassName: istio
20+
listeners:
21+
- name: http
22+
protocol: HTTP
23+
port: 80
24+
allowedRoutes:
25+
namespaces:
26+
from: Same
27+
EOF
28+
```
29+
The `Gateway` resource created above uses Istio as the gateway provider. For Envoy Gateway, use the Envoy Gateway `GatewayClass` as the `gatewayClassName`.
30+
931
### Deploy Toy Store application
1032

1133
Deploy a simple HTTP application service that echoes back the request data:

0 commit comments

Comments
 (0)