<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Endpoint VS EndpointSlice :: Ay Docs</title>
    <link>https://ops.docs.72602.space/using/k8s/endpointslice/index.html</link>
    <description>Endpoint 和 EndpointSlice 都是 Kubernetes 中用于管理服务后端端点的资源，但 EndpointSlice 是更现代、更高效的解决方案。以下是它们的详细区别：&#xA;一、基本概念对比 Endpoint（传统方式） apiVersion: v1 kind: Endpoints metadata: name: my-service subsets: - addresses: - ip: 10.244.1.5 targetRef: kind: Pod name: pod-1 - ip: 10.244.1.6 targetRef: kind: Pod name: pod-2 ports: - port: 8080 protocol: TCP EndpointSlice（现代方式） apiVersion: discovery.k8s.io/v1 kind: EndpointSlice metadata: name: my-service-abc123 labels: kubernetes.io/service-name: my-service addressType: IPv4 ports: - name: http protocol: TCP port: 8080 endpoints: - addresses: - &#34;10.244.1.5&#34; conditions: ready: true targetRef: kind: Pod name: pod-1 zone: us-west-2a - addresses: - &#34;10.244.1.6&#34; conditions: ready: true targetRef: kind: Pod name: pod-2 zone: us-west-2b 二、核心架构差异 1. 数据模型设计 特性 Endpoint EndpointSlice 存储结构 单个大对象 多个分片对象 规模限制 所有端点在一个对象中 自动分片（默认最多100个端点/片） 更新粒度 全量更新 增量更新 2. 性能影响对比 # Endpoint 的问题：单个大对象 # 当有 1000 个 Pod 时： kubectl get endpoints my-service -o yaml # 返回一个包含 1000 个地址的庞大 YAML # EndpointSlice 的解决方案：自动分片 # 当有 1000 个 Pod 时： kubectl get endpointslices -l kubernetes.io/service-name=my-service # 返回 10 个 EndpointSlice，每个包含 100 个端点 三、详细功能区别 1. 地址类型支持 Endpoint：</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate></lastBuildDate>
    <atom:link href="https://ops.docs.72602.space/using/k8s/endpointslice/index.xml" rel="self" type="application/rss+xml" />
  </channel>
</rss>