Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: k8s discovery: state the restriction on the use of port number #8969

Merged
merged 1 commit into from
Mar 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/en/latest/discovery/kubernetes.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ The Kubernetes service discovery provides a query interface in accordance with t

+ name: The name of the Kubernetes endpoints

+ portName: The ports.name value in the Kubernetes endpoints, if there is no ports.name, use targetPort, port instead
+ portName: The `ports.name` value in the Kubernetes endpoints, if there is no `ports.name`, use `targetPort`, `port` instead. If `ports.name` exists, then port number cannot be used.

**return value:**
if the Kubernetes endpoints value is as follows:
Expand Down Expand Up @@ -247,7 +247,7 @@ service_name should match pattern: _[id]/[namespace]/[name]:[portName]_

+ name: The name of the Kubernetes endpoints

+ portName: The ports.name value in the Kubernetes endpoints, if there is no ports.name, use targetPort, port instead
+ portName: The `ports.name` value in the Kubernetes endpoints, if there is no `ports.name`, use `targetPort`, `port` instead. If `ports.name` exists, then port number cannot be used.

**return value:**
if the Kubernetes endpoints value is as follows:
Expand Down
4 changes: 2 additions & 2 deletions docs/zh/latest/discovery/kubernetes.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ service_name 必须满足格式: [namespace]/[name]:[portName]

+ name: Endpoints 的资源名

+ portName: Endpoints 定义包含的 ports.name 值,如果 Endpoints 没有定义 ports.name,请依次使用 targetPort, port 代替
+ portName: Endpoints 定义包含的 `ports.name` 值,如果 Endpoints 没有定义 `ports.name`,请依次使用 `targetPort`, `port` 代替。设置了 `ports.name` 的情况下,不能使用后两者。

**返回值:**
以如下 Endpoints 为例:
Expand Down Expand Up @@ -245,7 +245,7 @@ service_name 必须满足格式: [id]/[namespace]/[name]:[portName]

+ name: Endpoints 的资源名

+ portName: Endpoints 定义包含的 ports.name 值,如果 Endpoints 没有定义 ports.name,请依次使用 targetPort, port 代替
+ portName: Endpoints 定义包含的 `ports.name` 值,如果 Endpoints 没有定义 `ports.name`,请依次使用 `targetPort`, `port` 代替。设置了 `ports.name` 的情况下,不能使用后两者。

**返回值:**
以如下 Endpoints 为例:
Expand Down