当前位置:网站首页>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
边栏推荐
- 微信个人小商店一键开通助手小程序开发
- Explain JMM in detail
- Compare the version number [double pointer to intercept the string you want]
- [micro service sentinel] sentinel integrates openfeign
- Jielizhi Bluetooth headset quality control and production skills [chapter]
- 共享电商的背后: 共创、共生、共享、共富,共赢的共富精神
- 日本购物网站的网络乞丐功能
- MySQL -- convert rownum in Oracle to MySQL
- 每日三题 6.30
- 【嵌入式系统课设】单个按键控制LED灯
猜你喜欢

Copy ‘XXXX‘ to effectively final temp variable

Multiple smart pointers

赵福全:短期解决保供,长期要打造安全、高效有韧性的供应链

Three development trends of enterprise application from the perspective of the third technological revolution

2022年R1快开门式压力容器操作考题及答案
![Jielizhi, production line assembly link [chapter]](/img/5f/9ea7fd3b93df1fd3ecbfc1b669c831.png)
Jielizhi, production line assembly link [chapter]
![[micro service sentinel] sentinel integrates openfeign](/img/8b/46156255fd980eb422c7e05d5af7ee.png)
[micro service sentinel] sentinel integrates openfeign

AAAI22 | 结构标记和交互建模:用于图分类的“SLIM”网络

Explain JMM in detail

玻璃马赛克
随机推荐
想请教一下,证券开户选择哪个证券比较好?手机开户是安全么?
[micro service sentinel] sentinel integrates openfeign
Practical application and extension of plain framework
Programming English vocabulary notebook
Which securities company is better and which is safer to open a securities account
Use 3DMAX to make a chess piece
typescript枚举
leetcode - 287. Find duplicates
Jerry's question about long press boot detection [chapter]
What is the mosaic tailgate?
Cisco -- highly available and reliable network examination
2022 examination questions and online simulation examination for safety management personnel of hazardous chemical business units
Multiple smart pointers
"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
Zhongang Mining: it has inherent advantages to develop the characteristic chemical industry dominated by fluorine chemical industry
Summary of "performance testing" of software testing, novice will know the knowledge points on the road
通过Go语言创建CA与签发证书
Cisco exam -- redundant network
CKS CKA ckad change terminal to remote desktop
共享电商的背后: 共创、共生、共享、共富,共赢的共富精神