apiVersion: v1
import "k8s.io/api/core/v1"
Endpoints 是实现实际服务的端点集合。示例
名称: "mysvc", 子集: [ { 地址: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], 端口: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] }, { 地址: [{"ip": "10.10.3.3"}], 端口: [{"name": "a", "port": 93}, {"name": "b", "port": 76}] }, ]
Endpoints 是一个传统的 API,不包含关于所有 Service 功能的信息。使用 discoveryv1.EndpointSlice 以获取关于 Service 端点的完整信息。
已弃用:此 API 在 v1.33+ 中已弃用。请使用 discoveryv1.EndpointSlice。
apiVersion: v1
kind: Endpoints
metadata (ObjectMeta)
标准对象的元数据。更多信息:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
subsets ([]EndpointSubset)
原子:将在合并期间被替换
所有端点的集合是所有子集的并集。地址根据它们共享的 IP 被放入子集中。单个地址带有多个端口,其中一些已就绪,而另一些未就绪(因为它们来自不同的容器),这将导致该地址在不同端口的不同子集中显示。没有地址会同时出现在同一子集的 Addresses 和 NotReadyAddresses 中。组成服务的地址和端口集合。
*EndpointSubset 是一组具有通用端口集的地址。扩展的端点集是 Addresses x Ports 的笛卡尔积。例如,给定
{ 地址: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], 端口: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] }
得到的端点集合可以看作是
a: [ 10.10.1.1:8675, 10.10.2.2:8675 ], b: [ 10.10.1.1:309, 10.10.2.2:309 ]
已弃用:此 API 在 v1.33+ 中已弃用。*
subsets.addresses ([]EndpointAddress)
原子:将在合并期间被替换
提供相关端口且被标记为就绪的 IP 地址。这些端点应被认为对于负载均衡器和客户端使用是安全的。
EndpointAddress 是描述单个 IP 地址的元组。已弃用:此 API 在 v1.33+ 中已弃用。
subsets.addresses.ip (string),必需
此端点的 IP。不能是回环地址 (127.0.0.0/8 或 ::1)、链路本地地址 (169.254.0.0/16 或 fe80::/10) 或链路本地组播地址 (224.0.0.0/24 或 ff02::/16)。
subsets.addresses.hostname (string)
此端点的主机名
subsets.addresses.nodeName (string)
可选:托管此端点的节点。这可用于确定节点本地的端点。
subsets.addresses.targetRef (ObjectReference)
对提供端点的对象的引用。
subsets.notReadyAddresses ([]EndpointAddress)
原子:将在合并期间被替换
提供相关端口但当前未被标记为就绪的 IP 地址,因为它们尚未完成启动、最近未通过就绪性检查或最近未通过存活检查。
EndpointAddress 是描述单个 IP 地址的元组。已弃用:此 API 在 v1.33+ 中已弃用。
subsets.notReadyAddresses.ip (string),必需
此端点的 IP。不能是回环地址 (127.0.0.0/8 或 ::1)、链路本地地址 (169.254.0.0/16 或 fe80::/10) 或链路本地组播地址 (224.0.0.0/24 或 ff02::/16)。
subsets.notReadyAddresses.hostname (string)
此端点的主机名
subsets.notReadyAddresses.nodeName (string)
可选:托管此端点的节点。这可用于确定节点本地的端点。
subsets.notReadyAddresses.targetRef (ObjectReference)
对提供端点的对象的引用。
subsets.ports ([]EndpointPort)
原子:将在合并期间被替换
相关 IP 地址上可用的端口号。
EndpointPort 是描述单个端口的元组。已弃用:此 API 在 v1.33+ 中已弃用。
subsets.ports.port (int32),必需
端点的端口号。
subsets.ports.protocol (string)
此端口的 IP 协议。必须是 UDP、TCP 或 SCTP。默认为 TCP。
可能的枚举值
"SCTP" 是 SCTP 协议。"TCP" 是 TCP 协议。"UDP" 是 UDP 协议。subsets.ports.name (string)
此端口的名称。必须与对应的 ServicePort 中的“name”字段匹配。必须是 DNS_LABEL。仅在定义了一个端口时可选。
subsets.ports.appProtocol (string)
此端口的应用程序协议。这用作提示,供实现为它们理解的协议提供更丰富的功能。此字段遵循标准的 Kubernetes 标签语法。有效值是
未加前缀的协议名称 - 保留给 IANA 标准服务名称(如 RFC-6335 和 https://www.iana.org/assignments/service-names) 中所述)。
Kubernetes 定义的前缀名称
其他协议应使用实现定义的加前缀名称,例如 mycompany.com/my-custom-protocol。
EndpointsList 是一个端点列表。已弃用:此 API 在 v1.33+ 中已弃用。
apiVersion: v1
kind: EndpointsList
metadata (ListMeta)
标准列表元数据。更多信息:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
items ([]Endpoints),必需
端点列表。
get 读取指定的 EndpointsGET /api/v1/namespaces/{namespace}/endpoints/{name}
200 (Endpoints): 成功
401: 未授权
list 列出或监视 Endpoints 类对象GET /api/v1/namespaces/{namespace}/endpoints
namespace (在路径中): string, 必需
allowWatchBookmarks (in query): boolean
continue (in query): string
fieldSelector (in query): string
labelSelector (in query): string
limit (in query): integer
pretty (在查询中): string
resourceVersion (in query): string
resourceVersionMatch (in query): string
sendInitialEvents (in query): boolean
timeoutSeconds (in query): integer
watch (in query): boolean
200 (EndpointsList): 成功
401: 未授权
list 列出或监视 Endpoints 类对象GET /api/v1/endpoints
allowWatchBookmarks (in query): boolean
continue (in query): string
fieldSelector (in query): string
labelSelector (in query): string
limit (in query): integer
pretty (在查询中): string
resourceVersion (in query): string
resourceVersionMatch (in query): string
sendInitialEvents (in query): boolean
timeoutSeconds (in query): integer
watch (in query): boolean
200 (EndpointsList): 成功
401: 未授权
create 创建 EndpointsPOST /api/v1/namespaces/{namespace}/endpoints
namespace (在路径中): string, 必需
主体: Endpoints,必需
dryRun (在查询中): string
fieldManager (在查询中): string
fieldValidation (在查询中): string
pretty (在查询中): string
200 (Endpoints): 成功
201 (Endpoints): 已创建
202 (Endpoints): 已接受
401: 未授权
update 替换指定的 EndpointsPUT /api/v1/namespaces/{namespace}/endpoints/{name}
name (在路径中): string, 必需
Endpoints 的名称
namespace (在路径中): string, 必需
主体: Endpoints,必需
dryRun (在查询中): string
fieldManager (在查询中): string
fieldValidation (在查询中): string
pretty (在查询中): string
200 (Endpoints): 成功
201 (Endpoints): 已创建
401: 未授权
patch 部分更新指定的 EndpointsPATCH /api/v1/namespaces/{namespace}/endpoints/{name}
name (在路径中): string, 必需
Endpoints 的名称
namespace (在路径中): string, 必需
body: Patch, 必需
dryRun (在查询中): string
fieldManager (在查询中): string
fieldValidation (在查询中): string
force (in query): boolean
pretty (在查询中): string
200 (Endpoints): 成功
201 (Endpoints): 已创建
401: 未授权
delete 删除 EndpointsDELETE /api/v1/namespaces/{namespace}/endpoints/{name}
name (在路径中): string, 必需
Endpoints 的名称
namespace (在路径中): string, 必需
body: DeleteOptions
dryRun (在查询中): string
gracePeriodSeconds (in query): integer
ignoreStoreReadErrorWithClusterBreakingPotential (in query): boolean
pretty (在查询中): string
propagationPolicy (in query): string
200 (Status): 确定
202 (Status): 已接受
401: 未授权
deletecollection 删除 Endpoints 集合DELETE /api/v1/namespaces/{namespace}/endpoints
namespace (在路径中): string, 必需
body: DeleteOptions
continue (in query): string
dryRun (在查询中): string
fieldSelector (in query): string
gracePeriodSeconds (in query): integer
ignoreStoreReadErrorWithClusterBreakingPotential (in query): boolean
labelSelector (in query): string
limit (in query): integer
pretty (在查询中): string
propagationPolicy (in query): string
resourceVersion (in query): string
resourceVersionMatch (in query): string
sendInitialEvents (in query): boolean
timeoutSeconds (in query): integer
200 (Status): 确定
401: 未授权
本页面是自动生成的。
如果您打算报告此页面的问题,请在您的问题描述中提及该页面是自动生成的。修复可能需要在 Kubernetes 项目的其他地方进行。