@@ -9,18 +9,6 @@ to route traffic to that application using GRPCRoute resources.
9
9
10
10
1 . Follow the [ installation instructions] ( https://docs.nginx.com/nginx-gateway-fabric/installation/ ) to deploy NGINX Gateway Fabric.
11
11
12
- 1 . Save the public IP address of NGINX Gateway Fabric into a shell variable:
13
-
14
- ``` text
15
- GW_IP=XXX.YYY.ZZZ.III
16
- ```
17
-
18
- 1. Save the port of NGINX Gateway Fabric:
19
-
20
- ```text
21
- GW_PORT=<port number>
22
- ```
23
-
24
12
## 2. Deploy the Helloworld Application
25
13
26
14
1 . Create the two helloworld Deployments and Services:
@@ -60,7 +48,16 @@ There are 3 options to configure gRPC routing. To access the application and tes
60
48
kubectl apply -f exact-method.yaml
61
49
` ` `
62
50
63
- 2. Test the Application:
51
+ After creating the Gateway resource, NGINX Gateway Fabric will provision an NGINX Pod and Service fronting it to route traffic.
52
+
53
+ Save the public IP address and port of the NGINX Service into shell variables:
54
+
55
+ ` ` ` text
56
+ GW_IP=XXX.YYY.ZZZ.III
57
+ GW_PORT=< port number>
58
+ ` ` `
59
+
60
+ 1. Test the Application:
64
61
65
62
` ` ` shell
66
63
grpcurl -plaintext -proto grpc.proto -authority bar.com -d ' {"name": "exact"}' ${GW_IP} :${GW_PORT} helloworld.Greeter/SayHello
@@ -72,7 +69,7 @@ There are 3 options to configure gRPC routing. To access the application and tes
72
69
}
73
70
` ` `
74
71
75
- 3 . Clean up the Gateway and GRPCRoute resources:
72
+ 1 . Clean up the Gateway and GRPCRoute resources:
76
73
77
74
` ` ` shell
78
75
kubectl delete -f exact-method.yaml
@@ -86,7 +83,16 @@ There are 3 options to configure gRPC routing. To access the application and tes
86
83
kubectl apply -f hostname.yaml
87
84
` ` `
88
85
89
- 2. Test the Application:
86
+ After creating the Gateway resource, NGINX Gateway Fabric will provision an NGINX Pod and Service fronting it to route traffic.
87
+
88
+ Save the public IP address and port of the NGINX Service into shell variables:
89
+
90
+ ` ` ` text
91
+ GW_IP=XXX.YYY.ZZZ.III
92
+ GW_PORT=< port number>
93
+ ` ` `
94
+
95
+ 1. Test the Application:
90
96
91
97
` ` ` shell
92
98
grpcurl -plaintext -proto grpc.proto -authority bar.com -d ' {"name": "bar server"}' ${GW_IP} :${GW_PORT} helloworld.Greeter/SayHello
@@ -132,7 +138,7 @@ There are 3 options to configure gRPC routing. To access the application and tes
132
138
2024/04/29 09:29:46 Received: foo bar server
133
139
` ` `
134
140
135
- 3 . Clean up the Gateway and GRPCRoute resources:
141
+ 1 . Clean up the Gateway and GRPCRoute resources:
136
142
137
143
` ` ` shell
138
144
kubectl delete -f hostname.yaml
@@ -146,7 +152,16 @@ There are 3 options to configure gRPC routing. To access the application and tes
146
152
kubectl apply -f headers.yaml
147
153
` ` `
148
154
149
- 2. Test the Application:
155
+ After creating the Gateway resource, NGINX Gateway Fabric will provision an NGINX Pod and Service fronting it to route traffic.
156
+
157
+ Save the public IP address and port of the NGINX Service into shell variables:
158
+
159
+ ` ` ` text
160
+ GW_IP=XXX.YYY.ZZZ.III
161
+ GW_PORT=< port number>
162
+ ` ` `
163
+
164
+ 1. Test the Application:
150
165
151
166
` ` ` shell
152
167
grpcurl -plaintext -proto grpc.proto -authority bar.com -d ' {"name": "version one"}' -H ' version: one' ${GW_IP} :${GW_PORT} helloworld.Greeter/SayHello
@@ -230,7 +245,7 @@ There are 3 options to configure gRPC routing. To access the application and tes
230
245
2024/04/29 09:33:26 Received: version two orange
231
246
` ` `
232
247
233
- 3 . Clean up the Gateway and GRPCRoute resources:
248
+ 1 . Clean up the Gateway and GRPCRoute resources:
234
249
235
250
` ` ` shell
236
251
kubectl delete -f headers.yaml
0 commit comments