This is an automated email from the ASF dual-hosted git repository.

shuyangw pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git


The following commit(s) were added to refs/heads/master by this push:
     new 7be1134  doc: field `key` should be optional in `upstream` object. 
(#2349)
7be1134 is described below

commit 7be1134295d390d94ad30d807381680571801d50
Author: YuanSheng Wang <[email protected]>
AuthorDate: Thu Oct 1 23:24:40 2020 +0800

    doc: field `key` should be optional in `upstream` object. (#2349)
---
 doc/admin-api.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/admin-api.md b/doc/admin-api.md
index a130a67..29041c4 100644
--- a/doc/admin-api.md
+++ b/doc/admin-api.md
@@ -498,7 +498,7 @@ In addition to the basic complex equalization algorithm 
selection, APISIX's Upst
 |nodes           |required if `k8s_deployment_info` not configured|Hash table, 
the key of the internal element is the upstream machine address list, the 
format is `Address + Port`, where the address part can be IP or domain name, 
such as `192.168.1.100:80`, `foo.com:80`, etc. Value is the weight of the node. 
In particular, when the weight value is `0`, it has a special meaning, which 
usually means that the upstream node is invalid and never wants to be selected.|
 |k8s_deployment_info|required if `nodes` not configured|fields: 
`namespace`、`deploy_name`、`service_name`、`port`、`backend_type`, `port` is 
number, `backend_type` is `pod` or `service`, others is string. |
 |hash_on         |optional|This option is only valid if the `type` is `chash`. 
Supported types `vars`(Nginx variables), `header`(custom header), `cookie`, 
`consumer`, the default value is `vars`.|
-|key             |required|This option is only valid if the `type` is `chash`. 
Find the corresponding node `id` according to `hash_on` and `key`. When 
`hash_on` is set as `vars`, `key` is the required parameter, for now, it 
support nginx built-in variables like `uri, server_name, server_addr, 
request_uri, remote_port, remote_addr, query_string, host, hostname, arg_***`, 
`arg_***` is arguments in the request line, [Nginx variables 
list](http://nginx.org/en/docs/varindex.html). When `hash_ [...]
+|key             |optional|This option is only valid if the `type` is `chash`. 
Find the corresponding node `id` according to `hash_on` and `key`. When 
`hash_on` is set as `vars`, `key` is the required parameter, for now, it 
support nginx built-in variables like `uri, server_name, server_addr, 
request_uri, remote_port, remote_addr, query_string, host, hostname, arg_***`, 
`arg_***` is arguments in the request line, [Nginx variables 
list](http://nginx.org/en/docs/varindex.html). When `hash_ [...]
 |checks          |optional|Configure the parameters of the health check. For 
details, refer to [health-check](health-check.md).|
 |retries         |optional|Pass the request to the next upstream using the 
underlying Nginx retry mechanism, the retry mechanism is enabled by default and 
set the number of retries according to the number of backend nodes. If 
`retries` option is explicitly set, it will override the default value. `0` 
means disable retry mechanism.|
 |enable_websocket|optional| enable `websocket`(boolean), default `false`.|

Reply via email to