<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Service VS Endpoint :: Ay Docs</title>
    <link>https://ops.docs.72602.space/using/k8s/service_vs_endpoint/index.html</link>
    <description>Service 和 Endpoint/EndpointSlice 在 Kubernetes 中有明确的功能分工，它们共同构成了服务发现和负载均衡的基础。以下是详细的区别分析：&#xA;一、核心功能定位 Service - 抽象服务层 apiVersion: v1 kind: Service metadata: name: web-service spec: selector: app: web-server ports: - protocol: TCP port: 80 # 服务端口 targetPort: 8080 # 后端 Pod 端口 type: ClusterIP # 服务类型 Service 的核心功能：&#xA;服务抽象：提供稳定的虚拟 IP 和 DNS 名称 访问入口：定义客户端如何访问服务 负载均衡策略：指定流量分发方式 服务类型：ClusterIP、NodePort、LoadBalancer、ExternalName Endpoint/EndpointSlice - 后端实现层 apiVersion: v1 kind: Endpoints metadata: name: web-service # 必须与 Service 同名 subsets: - addresses: - ip: 10.244.1.5 targetRef: kind: Pod name: web-pod-1 - ip: 10.244.1.6 targetRef: kind: Pod name: web-pod-2 ports: - port: 8080 protocol: TCP Endpoints 的核心功能：</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate></lastBuildDate>
    <atom:link href="https://ops.docs.72602.space/using/k8s/service_vs_endpoint/index.xml" rel="self" type="application/rss+xml" />
  </channel>
</rss>