@@ -206,10 +206,14 @@ The YAML code in the following sections can be found in the [cafe-example folder
206
206
207
207
# ## Create the application resources
208
208
209
- Apply the file _cafe.yaml_ with the contents with `kubectl` :
209
+ Create the file _cafe.yaml_ with the following contents :
210
+
211
+ {{< ghcode `https://raw.githubusercontent.com/nginxinc/nginx-gateway-fabric/refs/heads/main/examples/cafe-example/cafe.yaml`>}}
212
+
213
+ Apply it using `kubectl` :
210
214
211
215
` ` ` shell
212
- kubectl apply -f "https://raw.githubusercontent.com/nginxinc/nginx-gateway-fabric/refs/heads/main/examples/ cafe-example/cafe .yaml"
216
+ kubectl apply -f cafe.yaml
213
217
` ` `
214
218
215
219
` ` ` text
@@ -235,20 +239,28 @@ tea-7b7d6c947d-d4qcf 1/1 Running 0 10s
235
239
236
240
# ## Create Gateway and HTTPRoute resources
237
241
238
- Apply the file _gateway.yaml_ with the contents using `kubectl` :
242
+ Create the file _gateway.yaml_ with the following contents :
243
+
244
+ {{< ghcode `https://raw.githubusercontent.com/nginxinc/nginx-gateway-fabric/refs/heads/main/examples/cafe-example/gateway.yaml`>}}
245
+
246
+ Apply it using `kubectl` :
239
247
240
248
` ` ` shell
241
- kubectl apply -f https://raw.githubusercontent.com/nginxinc/nginx-gateway-fabric/refs/heads/main/examples/cafe-example/ gateway.yaml
249
+ kubectl apply -f gateway.yaml
242
250
` ` `
243
251
244
252
` ` ` text
245
253
gateway.gateway.networking.k8s.io/gateway created
246
254
` ` `
247
255
248
- Apply the file _cafe-routes.yaml_ with the contents using `kubectl` :
256
+ Create the file _cafe-routes.yaml_ with the following contents :
257
+
258
+ {{< ghcode `https://raw.githubusercontent.com/nginxinc/nginx-gateway-fabric/refs/heads/main/examples/cafe-example/cafe-routes.yaml`>}}
259
+
260
+ Apply it using `kubectl` :
249
261
250
262
` ` ` shell
251
- kubectl apply -f https://raw.githubusercontent.com/nginxinc/nginx-gateway-fabric/refs/heads/main/examples/cafe-example/ cafe-routes.yaml
263
+ kubectl apply -f cafe-routes.yaml
252
264
` ` `
253
265
254
266
` ` ` text
0 commit comments