当前位置:网站首页>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
边栏推荐
- 每日三题 6.28
- 想请教一下,证券开户选择哪个证券比较好?手机开户是安全么?
- URL 介绍
- What are the benefits of third party acceptance testing? Recommended by professional third-party software testing institutions
- Openresty load balancing
- 攻防演习防御体系构建之第三篇之建立实战化的安全体系
- 若干互联网暴露面的收敛及处置建议
- The digital summit is popular, and city chain technology has triggered a new round of business transformation
- MySQL -- convert rownum in Oracle to MySQL
- 2022 safety officer-c certificate examination question simulation examination question bank and simulation examination
猜你喜欢

Programming English vocabulary notebook

mysql binlog的清理

Istio、eBPF 和 RSocket Broker:深入研究服务网格

Zhongang Mining: it has inherent advantages to develop the characteristic chemical industry dominated by fluorine chemical industry

2022 R1 fast opening pressure vessel operation test questions and answers
![Jielizhi, production line assembly link [chapter]](/img/5f/9ea7fd3b93df1fd3ecbfc1b669c831.png)
Jielizhi, production line assembly link [chapter]
![[JUC learning road day 9] barrier derivatives](/img/7d/25a49afa470cfef5b7b383918d6a7d.png)
[JUC learning road day 9] barrier derivatives

Unable to climb hill sort, directly insert sort

Explain the use of locksupport in detail

OpenVINO 模型性能评估工具—DL Workbench
随机推荐
The online beggar function of Japanese shopping websites
Openresty load balancing
赵福全:短期解决保供,长期要打造安全、高效有韧性的供应链
Rank ranking with MySQL 5.7
plain framework的实际应用和扩展
Business visualization - make your flowchart'run'up
想请教一下,证券开户选择哪个证券比较好?手机开户是安全么?
【嵌入式系统课设】单个按键控制LED灯
[micro service sentinel] @sentinelresource details
locust的使用
【Kotlin 第三方 】coil koltin协程图片加载库Coil类似Glide的图片加载第三方
证券开户选哪个证券公司比较好,哪个更安全
Multiple smart pointers
Use 3DMAX to make a chess piece
Jielizhi, production line assembly link [chapter]
会声会影2022智能、快速、简单的视频剪辑软件
[MySQL] index classification
MySQL -- deduction of index storage model
共享电商的背后: 共创、共生、共享、共富,共赢的共富精神
js——arguments的使用