From c2e52304f0e31127d990154daa77de7ab92bdcc1 Mon Sep 17 00:00:00 2001 From: "Ling Samuel (WSL)" Date: Wed, 1 Mar 2023 11:15:44 +0800 Subject: [PATCH] docs: k8s discovery: state the restriction on the use of port number Signed-off-by: Ling Samuel (WSL) --- docs/en/latest/discovery/kubernetes.md | 4 ++-- docs/zh/latest/discovery/kubernetes.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/en/latest/discovery/kubernetes.md b/docs/en/latest/discovery/kubernetes.md index e80c7385151a..e022d0ecaf55 100644 --- a/docs/en/latest/discovery/kubernetes.md +++ b/docs/en/latest/discovery/kubernetes.md @@ -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: @@ -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: diff --git a/docs/zh/latest/discovery/kubernetes.md b/docs/zh/latest/discovery/kubernetes.md index 5e6d3e0403bf..bb07097eed88 100644 --- a/docs/zh/latest/discovery/kubernetes.md +++ b/docs/zh/latest/discovery/kubernetes.md @@ -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 为例: @@ -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 为例: