Merge pull request #689 from julianvmodesto/fix-nginx-affinity-doc

Fix affinity doc
This commit is contained in:
Manuel Alejandro de Brito Fontes 2017-05-05 14:18:24 -03:00 committed by GitHub
commit 188c64aaac

View file

@ -41,7 +41,7 @@ The following annotations are supported:
|---------------------------|------|
|[ingress.kubernetes.io/add-base-url](#rewrite)|true or false|
|[ingress.kubernetes.io/app-root](#rewrite)|string|
|[ingress.kubernetes.io/affinity](#session-affinity)|true or false|
|[ingress.kubernetes.io/affinity](#session-affinity)|cookie|
|[ingress.kubernetes.io/auth-realm](#authentication)|string|
|[ingress.kubernetes.io/auth-secret](#authentication)|string|
|[ingress.kubernetes.io/auth-type](#authentication)|basic or digest|
@ -238,6 +238,8 @@ Please check the [whitelist](/examples/affinity/cookie/nginx/README.md) example.
The annotation `ingress.kubernetes.io/affinity` enables and sets the affinity type in all Upstreams of an Ingress. This way, a request will always be directed to the same upstream server.
The only affinity type available for NGINX is `cookie`.
#### Cookie affinity
If you use the ``cookie`` type you can also specify the name of the cookie that will be used to route the requests with the annotation `ingress.kubernetes.io/session-cookie-name`. The default is to create a cookie named 'route'.