Fix broken links in documentation (#4746)
This commit is contained in:
parent
2771095b8c
commit
d1eea794e9
9 changed files with 23 additions and 23 deletions
|
|
@ -30,12 +30,12 @@ You can confirm that the Ingress works:
|
|||
$ kubectl describe ing nginx-test
|
||||
Name: nginx-test
|
||||
Namespace: default
|
||||
Address:
|
||||
Address:
|
||||
Default backend: default-http-backend:80 (10.180.0.4:8080,10.240.0.2:8080)
|
||||
Rules:
|
||||
Host Path Backends
|
||||
---- ---- --------
|
||||
stickyingress.example.com
|
||||
stickyingress.example.com
|
||||
/ nginx-service:80 (<none>)
|
||||
Annotations:
|
||||
affinity: cookie
|
||||
|
|
@ -46,7 +46,7 @@ Events:
|
|||
FirstSeen LastSeen Count From SubObjectPath Type Reason Message
|
||||
--------- -------- ----- ---- ------------- -------- ------ -------
|
||||
7s 7s 1 {nginx-ingress-controller } Normal CREATE default/nginx-test
|
||||
|
||||
|
||||
|
||||
$ curl -I http://stickyingress.example.com
|
||||
HTTP/1.1 200 OK
|
||||
|
|
@ -69,8 +69,8 @@ If the backend pool grows NGINX will keep sending the requests through the same
|
|||
|
||||
When the backend server is removed, the requests are re-routed to another upstream server. This does not require the cookie to be updated because the key's [consistent hash][consistent-hashing] will change.
|
||||
|
||||
When you have a Service pointing to more than one Ingress, with only one containing affinity configuration, the first created Ingress will be used.
|
||||
When you have a Service pointing to more than one Ingress, with only one containing affinity configuration, the first created Ingress will be used.
|
||||
This means that you can face the situation that you've configured session affinity on one Ingress and it doesn't work because the Service is pointing to another Ingress that doesn't configure this.
|
||||
|
||||
[ingress-paths]: ../../../user-guide/ingress-path-matching
|
||||
[ingress-paths]: ../../../user-guide/ingress-path-matching.md
|
||||
[consistent-hashing]: https://en.wikipedia.org/wiki/Consistent_hashing
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ This example demonstrates how to use the Rewrite annotations
|
|||
|
||||
You will need to make sure your Ingress targets exactly one Ingress
|
||||
controller by specifying the [ingress.class annotation](../../user-guide/multiple-ingress.md),
|
||||
and that you have an ingress controller [running](../../deploy) in your cluster.
|
||||
and that you have an ingress controller [running](../../deploy/) in your cluster.
|
||||
|
||||
## Deployment
|
||||
|
||||
|
|
@ -26,9 +26,9 @@ Rewriting can be controlled using the following annotations:
|
|||
|
||||
!!! attention
|
||||
Starting in Version 0.22.0, ingress definitions using the annotation `nginx.ingress.kubernetes.io/rewrite-target` are not backwards compatible with previous versions. In Version 0.22.0 and beyond, any substrings within the request URI that need to be passed to the rewritten path must explicitly be defined in a [capture group](https://www.regular-expressions.info/refcapture.html).
|
||||
|
||||
|
||||
!!! note
|
||||
[Captured groups](https://www.regular-expressions.info/refcapture.html) are saved in numbered placeholders, chronologically, in the form `$1`, `$2` ... `$n`. These placeholders can be used as parameters in the `rewrite-target` annotation.
|
||||
[Captured groups](https://www.regular-expressions.info/refcapture.html) are saved in numbered placeholders, chronologically, in the form `$1`, `$2` ... `$n`. These placeholders can be used as parameters in the `rewrite-target` annotation.
|
||||
|
||||
Create an Ingress rule with a rewrite annotation:
|
||||
|
||||
|
|
@ -53,7 +53,7 @@ spec:
|
|||
' | kubectl create -f -
|
||||
```
|
||||
|
||||
In this ingress definition, any characters captured by `(.*)` will be assigned to the placeholder `$2`, which is then used as a parameter in the `rewrite-target` annotation.
|
||||
In this ingress definition, any characters captured by `(.*)` will be assigned to the placeholder `$2`, which is then used as a parameter in the `rewrite-target` annotation.
|
||||
|
||||
For example, the ingress definition above will result in the following rewrites:
|
||||
- `rewrite.bar.com/something` rewrites to `rewrite.bar.com/`
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ This example demonstrates how to assign a static-ip to an Ingress on through the
|
|||
You need a [TLS cert](../PREREQUISITES.md#tls-certificates) and a [test HTTP service](../PREREQUISITES.md#test-http-service) for this example.
|
||||
You will also need to make sure your Ingress targets exactly one Ingress
|
||||
controller by specifying the [ingress.class annotation](../../user-guide/multiple-ingress.md),
|
||||
and that you have an ingress controller [running](../../deploy) in your cluster.
|
||||
and that you have an ingress controller [running](../../deploy/) in your cluster.
|
||||
|
||||
## Acquiring an IP
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue