docs:add configuration of namespace in docs

pull/30/head
SkyeBeFreeman 3 years ago
parent 98305d13b3
commit 6bb9a2dddd

@ -82,18 +82,19 @@ spring:
## 配置列表 ## 配置列表
| 配置项Key | 默认值 |是否必填| 配置项说明 | | 配置项Key | 默认值 | 是否必填 | 配置项说明 |
| ----------------------------------------------- | -----------------------| --------- | ---------------------------- | |-------------------------------------------------|----------------------------|------|---------------------------|
| spring.cloud.polaris.server-addr | 无 |是| Polaris后端地址 | | spring.cloud.polaris.server-addr | 无 | 是 | Polaris后端地址 |
| spring.cloud.polaris.discovery.service | ${spring.application.name} |否| 服务名称 | | spring.cloud.polaris.discovery.service | ${spring.application.name} | 否 | 服务名称 |
| spring.cloud.polaris.discovery.enabled | true |否| 是否开启服务注册与发现 | | spring.cloud.polaris.discovery.enabled | true | 否 | 是否开启服务注册与发现 |
| spring.cloud.polaris.discovery.instance-enabled | true |否| 当前微服务实例是否可以被访问 | | spring.cloud.polaris.discovery.namespace | default | 否 | 服务所在的命名空间名称 |
| spring.cloud.polaris.discovery.token | 无 |否| 鉴权Token | | spring.cloud.polaris.discovery.instance-enabled | true | 否 | 当前微服务实例是否可以被访问 |
| spring.cloud.polaris.discovery.version | null |否| 微服务版本 | | spring.cloud.polaris.discovery.token | 无 | 否 | 鉴权Token |
| spring.cloud.polaris.protocol | null |否| 微服务协议类型 | | spring.cloud.polaris.discovery.version | null | 否 | 微服务版本 |
| spring.cloud.polaris.weight | 100 |否| 微服务权重 | | spring.cloud.polaris.protocol | null | 否 | 微服务协议类型 |
| spring.cloud.loadbalancer.polaris.enabled | true |否| 是否开启负载均衡 | | spring.cloud.polaris.weight | 100 | 否 | 微服务权重 |
| spring.cloud.loadbalancer.polaris.strategy | weighted_random |否| 负载均衡策略 | | spring.cloud.loadbalancer.polaris.enabled | true | 否 | 是否开启负载均衡 |
| spring.cloud.tencent.metadata.content | 无 |否| 自定义元数据为Map结构 | | spring.cloud.loadbalancer.polaris.strategy | weighted_random | 否 | 负载均衡策略 |
| spring.cloud.tencent.metadata.transitive | 无 |否| 需要传递的自定义元数据的key列表为List结构 | | spring.cloud.tencent.metadata.content | 无 | 否 | 自定义元数据为Map结构 |
| spring.cloud.tencent.metadata.transitive | 无 | 否 | 需要传递的自定义元数据的key列表为List结构 |

@ -80,10 +80,11 @@ Taking examples like random weight policy, you can add weight at Polaris control
## Configuration LIst ## Configuration LIst
| ConfigurationKey | default | Yes/No required | Configuration Instruction | | ConfigurationKey | default | Yes/No required | Configuration Instruction |
| ----------------------------------------------- | -------------------------- | --------------- | ---------------------------------------------------- | |-------------------------------------------------|----------------------------|-----------------|------------------------------------------------------|
| spring.cloud.polaris.server-addr | false | yes | Polaris backend address | | spring.cloud.polaris.server-addr | false | yes | Polaris backend address |
| spring.cloud.polaris.discovery.service | ${spring.application.name} | null | service name | | spring.cloud.polaris.discovery.service | ${spring.application.name} | null | service name |
| spring.cloud.polaris.discovery.enabled | true | false | whether to active service registration and discovery | | spring.cloud.polaris.discovery.enabled | true | false | whether to active service registration and discovery |
| spring.cloud.polaris.discovery.namespace | default | false | the namespace of service |
| spring.cloud.polaris.discovery.instance-enabled | true | false | can current Microservice be visited | | spring.cloud.polaris.discovery.instance-enabled | true | false | can current Microservice be visited |
| spring.cloud.polaris.discovery.token | false | false | Authentication Token | | spring.cloud.polaris.discovery.token | false | false | Authentication Token |
| spring.cloud.polaris.discovery.version | null | false | Microservice Version | | spring.cloud.polaris.discovery.version | null | false | Microservice Version |
@ -91,6 +92,6 @@ Taking examples like random weight policy, you can add weight at Polaris control
| spring.cloud.polaris.weight | 100 | false | Microservice weight | | spring.cloud.polaris.weight | 100 | false | Microservice weight |
| spring.cloud.loadbalancer.polaris.enabled | true | false | whether to open CLB | | spring.cloud.loadbalancer.polaris.enabled | true | false | whether to open CLB |
| spring.cloud.loadbalancer.polaris.strategy | weighted_random | false | CLB policy | | spring.cloud.loadbalancer.polaris.strategy | weighted_random | false | CLB policy |
| spring.cloud.tencent.metadata.content | null | false | custom metadata Map | | spring.cloud.tencent.metadata.content | null | false | custom metadata Map |
| spring.cloud.tencent.metadata.transitive | null | false | need custom metadata key list | | spring.cloud.tencent.metadata.transitive | null | false | need custom metadata key list |

@ -10,7 +10,7 @@
"name": "spring.cloud.polaris.discovery.namespace", "name": "spring.cloud.polaris.discovery.namespace",
"type": "java.lang.String", "type": "java.lang.String",
"defaultValue": "default", "defaultValue": "default",
"description": "the namespace of service, default value is ${spring.application.name}." "description": "the namespace of service, default value is \"default\"."
}, },
{ {
"name": "spring.cloud.polaris.discovery.enabled", "name": "spring.cloud.polaris.discovery.enabled",

Loading…
Cancel
Save