Merge pull request #30 from SkyeBeFreeman/main

docs:add configuration of namespace in docs
pull/32/head
liaochuntao 3 years ago committed by GitHub
commit 936fc4b5c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -83,10 +83,11 @@ 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.namespace | default | 否 | 服务所在的命名空间名称 |
| spring.cloud.polaris.discovery.instance-enabled | true | 否 | 当前微服务实例是否可以被访问 | | spring.cloud.polaris.discovery.instance-enabled | true | 否 | 当前微服务实例是否可以被访问 |
| spring.cloud.polaris.discovery.token | 无 | 否 | 鉴权Token | | spring.cloud.polaris.discovery.token | 无 | 否 | 鉴权Token |
| spring.cloud.polaris.discovery.version | null | 否 | 微服务版本 | | spring.cloud.polaris.discovery.version | null | 否 | 微服务版本 |

@ -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 |

@ -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