From f78ad8d3cbf9b382df03800ff1af900ae4ae4dc5 Mon Sep 17 00:00:00 2001 From: dxin <1554389441@qq.com> Date: Mon, 13 Oct 2025 09:12:14 +0800 Subject: [PATCH] =?UTF-8?q?service=E7=9A=84=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- k8s知识笔记/三、serveice/1、service的类型 | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 k8s知识笔记/三、serveice/1、service的类型 diff --git a/k8s知识笔记/三、serveice/1、service的类型 b/k8s知识笔记/三、serveice/1、service的类型 new file mode 100644 index 0000000..877add2 --- /dev/null +++ b/k8s知识笔记/三、serveice/1、service的类型 @@ -0,0 +1,5 @@ +一、service的类型 + 1、clusterip: 默认类型, 自动分配一个仅Cluster内部可以访问的虚拟IP + 2、nodeport: 在每个Node上开放一个端口, 通过:的方式访问服务 + 3、loadbalancer: 通过云服务商的负载均衡器(LB)来暴露服务, 在nodeport的基础上, 借助cloud provider创建一个外部负载均衡器, 将请求转发到: + 4、externalname: 把集群外部的服务引入到集群内部来, 在集群内部直接使用, 没有任何类型代理被创建, 通过返回CNAME记录将服务映射到外部服务 \ No newline at end of file