当前位置:网站首页>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
边栏推荐
- Treatment of insufficient space in the root partition of armbain system
- Openresty load balancing
- Redis~02 cache: how to ensure data consistency in MySQL and redis when updating data?
- [kotlin third party] coil koltin collaboration picture loading library coil glide like picture loading third party
- typescript枚举
- shell 流程控制
- 通过Go语言创建CA与签发证书
- rviz打开后如何显示实时2D地图
- plain framework的实际应用和扩展
- Cisco -- highly available and reliable network examination
猜你喜欢

plain framework的实际应用和扩展

Advanced skills of testers: a guide to the application of unit test reports

Win 10 mstsc connect RemoteApp

Glass mosaic

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received

Demo program implementation of QT version Huarui camera

“35岁,公司老总,月薪2万送外卖“:时代抛弃你,连声再见都没有

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

【微服务|Sentinel】sentinel整合openfeign

什么是马赛克?
随机推荐
win 10 mstsc连接 RemoteApp
【嵌入式系统课设】单个按键控制LED灯
认识线程
What is the relationship between modeling and later film and television?
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received
【小程序】通过scroll-view组件实现左右【滑动】列表
Wechat personal small store one click opening assistant applet development
Armbain系统根分区空间不足处理
日本购物网站的网络乞丐功能
Redis~02 缓存:更新数据时如何保证MySQL和Redis中的数据一致性?
【微服务|Sentinel】SentinelResourceAspect详解
Cisco exam -- redundant network
Compare the version number [double pointer to intercept the string you want]
想请教股票开户要认识谁?在线开户是安全么?
测试人进阶技能:单元测试报告应用指南
Programming English vocabulary notebook
Explain the use of locksupport in detail
常见的二十种软件测试方法详解(史上最全)
"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
Introduction and use of plantuml