You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/resource-validation.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,7 @@ with the following error:
55
55
```shell
56
56
kubectl apply -f coffee-route.yaml
57
57
```
58
-
```
58
+
```text
59
59
The HTTPRoute "coffee" is invalid: spec.hostnames[0]: Invalid value: "cafe.!@#$%example.com": spec.hostnames[0] in body should match '^(\*\.)?[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$'
60
60
```
61
61
@@ -72,7 +72,7 @@ following error:
72
72
```shell
73
73
kubectl apply -f prod-gateway.yaml
74
74
```
75
-
```
75
+
```text
76
76
Error from server: error when creating "prod-gateway.yaml": admission webhook "validate.gateway.networking.k8s.io" denied the request: spec.listeners[1].hostname: Forbidden: should be empty for protocol TCP
77
77
```
78
78
@@ -91,7 +91,7 @@ hostname) with a Kubernetes event:
91
91
```shell
92
92
kubectl describe gateway prod-gateway
93
93
```
94
-
```
94
+
```text
95
95
. . .
96
96
Events:
97
97
Type Reason Age From Message
@@ -123,7 +123,7 @@ Below is an example of how NGK rejects an invalid resource. The validation error
Copy file name to clipboardExpand all lines: examples/advanced-routing/README.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# Advanced Routing
2
2
3
3
In this example we will deploy NGINX Kubernetes Gateway and configure advanced routing rules for a simple cafe application.
4
-
We will use `HTTPRoute` resources to route traffic to the cafe application based on a combination of the request method, headers, and query parameters.
4
+
We will use HTTPRoute resources to route traffic to the cafe application based on a combination of the request method, headers, and query parameters.
5
5
6
6
The cafe application consists of four Services: `coffee-v1-svc`, `coffee-v2-svc`, `tea-svc`, and `tea-post-svc`. In the next section we will create the following routing rules for the cafe application:
7
7
- For the path `/coffee` route requests with the header `version` set to `v2` or with the query param `TEST` set to `v2` to `coffee-v2-svc`, and all other requests to `coffee-v1-svc`.
@@ -11,7 +11,7 @@ The cafe application consists of four Services: `coffee-v1-svc`, `coffee-v2-svc`
11
11
12
12
## 1. Deploy NGINX Kubernetes Gateway
13
13
14
-
1. Follow the [installation instructions](/docs/installation.md) to deploy NGINX Gateway.
14
+
1. Follow the [installation instructions](/docs/installation.md) to deploy NGINX Kubernetes Gateway.
15
15
16
16
1. Save the public IP address of NGINX Kubernetes Gateway into a shell variable:
17
17
@@ -33,12 +33,12 @@ The cafe application consists of four Services: `coffee-v1-svc`, `coffee-v2-svc`
33
33
kubectl apply -f cafe.yaml
34
34
```
35
35
36
-
1. Check that the Pods are running in the `default`namespace:
36
+
1. Check that the Pods are running in the `default`Namespace:
37
37
38
38
```shell
39
39
kubectl -n default get pods
40
40
```
41
-
```console
41
+
```text
42
42
NAME READY STATUS RESTARTS AGE
43
43
coffee-v1-75869cf7ff-vlfpq 1/1 Running 0 17m
44
44
coffee-v2-67499ff985-2k6cc 1/1 Running 0 17m
@@ -48,13 +48,13 @@ The cafe application consists of four Services: `coffee-v1-svc`, `coffee-v2-svc`
48
48
49
49
## 3. Configure Routing
50
50
51
-
1. Create the `Gateway`:
51
+
1. Create the Gateway:
52
52
53
53
```shell
54
54
kubectl apply -f gateway.yaml
55
55
```
56
56
57
-
1. Create the `HTTPRoute` resources:
57
+
1. Create the HTTPRoute resources:
58
58
59
59
```shell
60
60
kubectl apply -f cafe-routes.yaml
@@ -71,7 +71,7 @@ Send a request with the header `version:v2` and confirm that the response comes
Copy file name to clipboardExpand all lines: examples/cafe-example/README.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
1
# Example
2
2
3
-
In this example we deploy NGINX Kubernetes Gateway, a simple web application, and then configure NGINX Gateway to route traffic to that application using `HTTPRoute` resources.
3
+
In this example we deploy NGINX Kubernetes Gateway, a simple web application, and then configure NGINX Kubernetes Gateway to route traffic to that application using HTTPRoute resources.
4
4
5
5
## Running the Example
6
6
7
7
## 1. Deploy NGINX Kubernetes Gateway
8
8
9
-
1. Follow the [installation instructions](/docs/installation.md) to deploy NGINX Gateway.
9
+
1. Follow the [installation instructions](/docs/installation.md) to deploy NGINX Kubernetes Gateway.
10
10
11
11
1. Save the public IP address of NGINX Kubernetes Gateway into a shell variable:
12
12
@@ -28,26 +28,26 @@ In this example we deploy NGINX Kubernetes Gateway, a simple web application, an
28
28
kubectl apply -f cafe.yaml
29
29
```
30
30
31
-
1. Check that the Pods are running in the `default`namespace:
31
+
1. Check that the Pods are running in the `default`Namespace:
0 commit comments