当前位置:网站首页>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
边栏推荐
- 众昂矿业:发展以氟化工为主的特色化工产业具有先天优势
- plain framework的实际应用和扩展
- Glass mosaic
- Unable to climb hill sort, directly insert sort
- CKS CKA ckad change terminal to remote desktop
- flutter Unable to load asset: assets/images/888.png
- 每日三题 6.30(2)
- [kotlin third party] coil koltin collaboration picture loading library coil glide like picture loading third party
- Contents of other parts of the map
- window10安装wsl(一)(WslRegisterDistribution ERROR)
猜你喜欢

从第三次技术革命看企业应用三大开发趋势

mysql binlog的清理

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

The digital summit is popular, and city chain technology has triggered a new round of business transformation

Explain ThreadLocal in detail

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

Explain JMM in detail

Tcpdump command usage details

日本购物网站的网络乞丐功能

微信个人小商店一键开通助手小程序开发
随机推荐
建模和影视后期有什么关联?
The digital summit is popular, and city chain technology has triggered a new round of business transformation
What is the mosaic tailgate?
[kotlin third party] coil koltin collaboration picture loading library coil glide like picture loading third party
纪念成为首个DAYUs200三方demo贡献者
微服务服务稳定性治理
Jielizhi Bluetooth headset quality control and production skills [chapter]
CADD课程学习(3)-- 靶点药物相互作用
Win 10 mstsc connect RemoteApp
认识线程
flutter Unable to load asset: assets/images/888.png
Yoga27 multidimensional all-in-one computer with excellent appearance and high-end configuration
mysql ---- Oracle中的rownum转换成MySQL
[micro service sentinel] @sentinelresource details
Practical application and extension of plain framework
[机缘参悟-35]:鬼谷子-飞箝篇-远程连接、远程控制与远程测试之术
YOGA27多维一体电脑,兼具出色外观与高端配置
Demo program implementation of QT version Huarui camera
Happy number [fast and slow pointer of ring PROBLEMS]
数字峰会人气火爆,城链科技引发新一轮商业变革