当前位置:网站首页>y53.第三章 Kubernetes从入门到精通 -- ingress(二六)
y53.第三章 Kubernetes从入门到精通 -- ingress(二六)
2022-07-01 22:51:00 【Raymond999999】
10.ingres使用案例
10.1 Kubernetes service 几种类型
# kubectl explain service.spec.type
ClusterIP:默认的类型,用于k8s 内部之间的服务访问,即通过内部的service ip 实现服务间的访问,service IP 仅可以在内部访问,不能从外部访问。
NodePort:在cluster IP 的基础之上,通过在每个node 节点监听一个可以指定宿主机端口(nodePort)来暴露服务,从而允许外部client 访问k8s 集群中的服务,nodePort 把外部client的请求转发至service 进行处理.
LoadBalancer:主要在公有云如阿里云、AWS 上使用,LoadBalancer 构建在nodePort 基础之上,通过公有云服务商提供的负载均衡器将k8s 集群中的服务暴露给集群外部的client 访问。
ExternalName:用于将k8s 集群外部的服务映射至k8s 集群内部访问,从而让集群内部的pod能够通过固定的service name 访问集群外部的服务,有时候也用于将不同namespace 之间的pod 通过ExternalName 进行访问。
Service 如果是cluster 类型那么从clusterIP 到pod 是默认是TCP 协议,TCP 支持MySQL、Redis 等特定服务,另外还有UDP 和SCTP 协议。
Kubernetes 暴露服务的几种方式:
NodePort
cluster
边栏推荐
- 2022 R1 fast opening pressure vessel operation test questions and answers
- 【微服务|Sentinel】SentinelResourceAspect详解
- 常见的二十种软件测试方法详解(史上最全)
- Multiple smart pointers
- Wechat personal small store one click opening assistant applet development
- What are the benefits of third party acceptance testing? Recommended by professional third-party software testing institutions
- 纪念成为首个DAYUs200三方demo贡献者
- [micro service sentinel] @sentinelresource details
- Microservice stability management
- Cisco exam -- redundant network
猜你喜欢
![Jerry's records are powered by Vbat with a power supply voltage of 4.2V [chapter]](/img/3e/571d246d211a979e948dae1de56e93.png)
Jerry's records are powered by Vbat with a power supply voltage of 4.2V [chapter]

rviz打开后如何显示实时2D地图

Explain the use of locksupport in detail

flutter Unable to load asset: assets/images/888. png

会声会影2022智能、快速、简单的视频剪辑软件

CADD课程学习(3)-- 靶点药物相互作用

Detailed explanation of twenty common software testing methods (the most complete in History)

数字化转型道阻且长,如何迈好关键的第一步

"35 years old, the boss of the company, with a monthly salary of 20000, give away takeout": the times abandoned you, not even saying goodbye

2022 R1 fast opening pressure vessel operation test questions and answers
随机推荐
Cisco exam -- redundant network
[MySQL] database optimization method
证券开户选哪个证券公司比较好,哪个更安全
Istio、eBPF 和 RSocket Broker:深入研究服务网格
OpenVINO 模型性能评估工具—DL Workbench
Simple interactive operation of electron learning (III)
每日三题 6.28
leetcode - 287. Find duplicates
CADD course learning (3) -- target drug interaction
flutter Unable to load asset: assets/images/888.png
openresty 负载均衡
Aaai22 | structural tagging and interaction modeling: a "slim" network for graph classification
毕业季,既是告别,也是新的开始
Tcpdump command usage details
Introduction and use of plantuml
Cisco test -- the concept and configuration test of routing
Who do you want to know when opening a stock account? Is it safe to open an account online?
Jielizhi, production line assembly link [chapter]
数字峰会人气火爆,城链科技引发新一轮商业变革
关于游戏性能优化的一些感想