|
6 | 6 | [id="nw-ingress-sharding_{context}"]
|
7 | 7 | = Ingress Controller sharding
|
8 | 8 |
|
9 |
| -You can use Ingress sharding, also known as router sharding, to distribute a set of routes across multiple routers by adding labels to routes, namespaces, or both. The Ingress Controller uses a corresponding set of selectors to admit only the routes that have a specified label. Each Ingress shard comprises the routes that are filtered using a given selection expression. |
| 9 | +You can use Ingress sharding, also known as router sharding, to distribute a set of routes across multiple routers by adding labels to routes, namespaces, or both. The Ingress Controller uses a corresponding set of selectors to admit only the routes that have a specified label. Each Ingress shard comprises the routes that are filtered by using a given selection expression. |
10 | 10 |
|
11 | 11 | As the primary mechanism for traffic to enter the cluster, the demands on the Ingress Controller can be significant. As a cluster administrator, you can shard the routes to:
|
12 | 12 |
|
13 |
| -* Balance Ingress Controllers, or routers, with several routes to speed up responses to changes. |
14 |
| -* Allocate certain routes to have different reliability guarantees than other routes. |
| 13 | +* Balance Ingress Controllers, or routers, with several routes to accelerate responses to changes. |
| 14 | +* Assign certain routes to have different reliability guarantees than other routes. |
15 | 15 | * Allow certain Ingress Controllers to have different policies defined.
|
16 | 16 | * Allow only specific routes to use additional features.
|
17 | 17 | * Expose different routes on different addresses so that internal and external users can see different routes, for example.
|
18 |
| -* Transfer traffic from one version of an application to another during a blue green deployment. |
| 18 | +* Transfer traffic from one version of an application to another during a blue-green deployment. |
19 | 19 |
|
20 |
| -When Ingress Controllers are sharded, a given route is admitted to zero or more Ingress Controllers in the group. A route's status describes whether an Ingress Controller has admitted it or not. An Ingress Controller will only admit a route if it is unique to its shard. |
| 20 | +When Ingress Controllers are sharded, a given route is admitted to zero or more Ingress Controllers in the group. The status of a route describes whether an Ingress Controller has admitted the route. An Ingress Controller only admits a route if the route is unique to a shard. |
21 | 21 |
|
22 |
| -An Ingress Controller can use three sharding methods: |
| 22 | +With sharding, you can distribute subsets of routes over multiple Ingress Controllers. These subsets can be nonoverlapping, also called _traditional_ sharding, or overlapping, otherwise known as _overlapped_ sharding. |
23 | 23 |
|
24 |
| -* Adding only a namespace selector to the Ingress Controller, so that all routes in a namespace with labels that match the namespace selector are in the Ingress shard. |
| 24 | +The following table outlines three sharding methods: |
25 | 25 |
|
26 |
| -* Adding only a route selector to the Ingress Controller, so that all routes with labels that match the route selector are in the Ingress shard. |
| 26 | +[cols="1,3",options="header"] |
| 27 | +|=== |
| 28 | +|Sharding method |
| 29 | +|Description |
27 | 30 |
|
28 |
| -* Adding both a namespace selector and route selector to the Ingress Controller, so that routes with labels that match the route selector in a namespace with labels that match the namespace selector are in the Ingress shard. |
| 31 | +|Namespace selector |
| 32 | +|After you add a namespace selector to the Ingress Controller, all routes in a namespace that have matching labels for the namespace selector are included in the Ingress shard. Consider this method when an Ingress Controller serves all routes created in a namespace. |
| 33 | + |
| 34 | +|Route selector |
| 35 | +|After you add a route selector to the Ingress Controller, all routes with labels that match the route selector are included in the Ingress shard. Consider this method when you want an Ingress Controller to serve only a subset of routes or a specific route in a namespace. |
| 36 | + |
| 37 | +|Namespace and route selectors |
| 38 | +|Provides your Ingress Controller scope for both namespace selector and route selector methods. Consider this method when you want the flexibility of both the namespace selector and the route selector methods. |
| 39 | +|=== |
29 | 40 |
|
30 |
| -With sharding, you can distribute subsets of routes over multiple Ingress Controllers. These subsets can be non-overlapping, also called _traditional_ sharding, or overlapping, otherwise known as _overlapped_ sharding. |
|
0 commit comments